0s autopkgtest [08:58:58]: starting date and time: 2026-02-02 08:58:58+0000 0s autopkgtest [08:58:58]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [08:58:58]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.f0tnkuh7/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:underscore --apt-upgrade jupyter-notebook --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=underscore/1.13.7~dfsg+~1.13.0-6' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-s390x-18.secgroup --name adt-resolute-s390x-jupyter-notebook-20260202-085858-juju-7f2275-prod-proposed-migration-environment-15-60cfb2e0-bc5b-42d8-81c3-bee24ccc78cd --image adt/ubuntu-resolute-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-autopkgtest-workers-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-s390x-jupyter-notebook-20260202-085858-juju-7f2275-prod-proposed-migration-environment-15-60cfb2e0-bc5b-42d8-81c3-bee24ccc78cd from image adt/ubuntu-resolute-s390x-server-20260202.img (UUID 2cf7d089-99a1-4704-af48-01d74c62f797)... 48s autopkgtest [08:59:46]: testbed dpkg architecture: s390x 48s autopkgtest [08:59:46]: testbed apt version: 3.1.14 48s autopkgtest [08:59:46]: @@@@@@@@@@@@@@@@@@@@ test bed setup 49s autopkgtest [08:59:47]: testbed release detected to be: None 50s autopkgtest [08:59:48]: updating testbed package index (apt update) 50s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 50s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 50s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 50s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 50s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [27.3 kB] 50s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2816 B] 51s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [99.2 kB] 51s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1256 kB] 53s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [109 kB] 53s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [989 kB] 53s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [6716 B] 54s Fetched 2614 kB in 4s (738 kB/s) 57s Reading package lists... 58s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 58s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 58s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 58s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 60s Reading package lists... 60s Reading package lists... 61s Building dependency tree... 61s Reading state information... 62s Calculating upgrade... 62s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 62s autopkgtest [09:00:00]: upgrading testbed (apt dist-upgrade and autopurge) 62s Reading package lists... 63s Building dependency tree... 63s Reading state information... 63s Calculating upgrade... 64s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 64s Reading package lists... 64s Building dependency tree... 64s Reading state information... 65s Solving dependencies... 65s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 69s autopkgtest [09:00:07]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP Mon Jan 12 15:39:23 UTC 2026 69s autopkgtest [09:00:07]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 74s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 74s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 74s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 74s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 74s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 74s gpgv: Can't check signature: No public key 74s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 75s autopkgtest [09:00:13]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 75s autopkgtest [09:00:13]: build not needed 76s autopkgtest [09:00:14]: test pytest: preparing testbed 77s Reading package lists... 77s Building dependency tree... 77s Reading state information... 77s Solving dependencies... 78s The following NEW packages will be installed: 78s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 78s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libjs-backbone 78s libjs-bootstrap libjs-bootstrap-tour libjs-codemirror libjs-es6-promise 78s libjs-jed libjs-jquery libjs-jquery-typeahead libjs-jquery-ui libjs-marked 78s libjs-mathjax libjs-moment libjs-requirejs libjs-requirejs-text 78s libjs-text-encoding libjs-underscore libjs-xterm libnorm1t64 libpgm-5.3-0t64 78s libpython3.14 libpython3.14-minimal libpython3.14-stdlib libsodium23 78s libsource-highlight-common libsource-highlight4t64 libzmq5 node-jed 78s python-notebook-doc python-tinycss2-common python3-all python3-argon2 78s python3-argon2-cffi-bindings python3-astroid python3-asttokens 78s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 78s python3-debugpy python3-decorator python3-defusedxml python3-executing 78s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 78s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 78s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 78s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 78s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 78s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 78s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 78s python3-pytest python3-requests-unixsocket python3-send2trash 78s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 78s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 78s python3-webencodings python3-zmq python3.14 python3.14-minimal 78s sphinx-rtd-theme-common 78s 0 upgraded, 95 newly installed, 0 to remove and 0 not upgraded. 78s Need to get 41.2 MB of archives. 78s After this operation, 198 MB of additional disk space will be used. 78s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x fonts-lato all 2.015-1build1 [2779 kB] 79s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14-minimal s390x 3.14.2-1 [917 kB] 79s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x python3.14-minimal s390x 3.14.2-1 [2510 kB] 80s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 80s Get:5 http://ftpmaster.internal/ubuntu resolute/universe s390x fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 80s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 80s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x libbabeltrace1 s390x 1.5.11-5 [170 kB] 80s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14-stdlib s390x 3.14.2-1 [2373 kB] 81s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14 s390x 3.14.2-1 [2651 kB] 81s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 81s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x libsource-highlight4t64 s390x 3.1.9-4.3build2 [274 kB] 81s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x gdb s390x 17.1-1ubuntu2 [4042 kB] 82s Get:13 http://ftpmaster.internal/ubuntu resolute/main s390x python3-platformdirs all 4.5.1-1 [17.1 kB] 82s Get:14 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 82s Get:15 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jupyter-core all 5.9.1-1 [28.9 kB] 82s Get:16 http://ftpmaster.internal/ubuntu resolute/universe s390x jupyter-core all 5.9.1-1 [6938 B] 82s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libjs-underscore all 1.13.7~dfsg+~1.13.0-6 [86.7 kB] 82s Get:18 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 82s Get:19 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 82s Get:20 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 82s Get:21 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 82s Get:22 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 82s Get:23 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-es6-promise all 4.2.8-12 [14.1 kB] 82s Get:24 http://ftpmaster.internal/ubuntu resolute/universe s390x node-jed all 1.1.1-4 [15.2 kB] 82s Get:25 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jed all 1.1.1-4 [2584 B] 82s Get:26 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 82s Get:27 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 82s Get:28 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 82s Get:29 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 82s Get:30 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-moment all 2.29.4+ds-1 [147 kB] 82s Get:31 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 82s Get:32 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-requirejs-text all 2.0.12-2 [9732 B] 82s Get:33 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-text-encoding all 0.7.0-5 [140 kB] 82s Get:34 http://ftpmaster.internal/ubuntu resolute/universe s390x libjs-xterm all 5.3.0-4 [475 kB] 83s Get:35 http://ftpmaster.internal/ubuntu resolute/main s390x python3-tornado s390x 6.5.4-0.1 [306 kB] 83s Get:36 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-terminado all 0.18.1-1 [13.2 kB] 83s Get:37 http://ftpmaster.internal/ubuntu resolute/main s390x libargon2-1 s390x 0~20190702+dfsg-5 [52.8 kB] 83s Get:38 http://ftpmaster.internal/ubuntu resolute/main s390x python3-ply all 3.11-10 [45.9 kB] 83s Get:39 http://ftpmaster.internal/ubuntu resolute/main s390x python3-pycparser all 2.23-2 [77.0 kB] 83s Get:40 http://ftpmaster.internal/ubuntu resolute/main s390x python3-cffi all 2.0.0-2 [75.5 kB] 83s Get:41 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-argon2-cffi-bindings s390x 25.1.0-2 [15.4 kB] 83s Get:42 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-argon2 s390x 25.1.0-2 [13.8 kB] 83s Get:43 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-comm all 0.2.1-1build1 [7148 B] 83s Get:44 http://ftpmaster.internal/ubuntu resolute/main s390x python3.14 s390x 3.14.2-1 [816 kB] 83s Get:45 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-coverage s390x 7.8.2+dfsg1-1ubuntu1 [160 kB] 83s Get:46 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-debugpy s390x 1.8.19+ds-1ubuntu1 [968 kB] 83s Get:47 http://ftpmaster.internal/ubuntu resolute/main s390x python3-decorator all 5.2.1-2 [28.1 kB] 83s Get:48 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-parso all 0.8.5-1 [68.0 kB] 83s Get:49 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 83s Get:50 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jedi all 0.19.1+ds1-1build1 [694 kB] 83s Get:51 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-matplotlib-inline all 0.2.1-1 [9462 B] 83s Get:52 http://ftpmaster.internal/ubuntu resolute/main s390x python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 83s Get:53 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-prompt-toolkit all 3.0.52-2 [258 kB] 83s Get:54 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-astroid all 4.0.2-1ubuntu1 [172 kB] 83s Get:55 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-asttokens all 3.0.1-1 [20.7 kB] 83s Get:56 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-executing all 2.2.1-0.1 [26.2 kB] 83s Get:57 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pure-eval all 0.2.3-1 [11.4 kB] 83s Get:58 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-stack-data all 0.6.3-3 [22.2 kB] 83s Get:59 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-ipython all 8.35.0-2 [575 kB] 83s Get:60 http://ftpmaster.internal/ubuntu resolute/main s390x python3-psutil s390x 7.1.0-1ubuntu1 [191 kB] 83s Get:61 http://ftpmaster.internal/ubuntu resolute/universe s390x libnorm1t64 s390x 1.5.9+dfsg-4 [156 kB] 83s Get:62 http://ftpmaster.internal/ubuntu resolute/universe s390x libpgm-5.3-0t64 s390x 5.3.128~dfsg-2.1build2 [169 kB] 83s Get:63 http://ftpmaster.internal/ubuntu resolute/main s390x libsodium23 s390x 1.0.18-2 [138 kB] 83s Get:64 http://ftpmaster.internal/ubuntu resolute/universe s390x libzmq5 s390x 4.3.5-1build3 [252 kB] 83s Get:65 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-zmq s390x 27.1.0-1 [248 kB] 83s Get:66 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jupyter-client all 8.7.0-1 [78.5 kB] 83s Get:67 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-nest-asyncio all 1.6.0-1 [6686 B] 83s Get:68 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-ipykernel all 6.30.1-1 [82.8 kB] 83s Get:69 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-ipython-genutils all 0.2.0-7 [22.0 kB] 83s Get:70 http://ftpmaster.internal/ubuntu resolute/universe s390x python-tinycss2-common all 1.5.1-1 [47.3 kB] 83s Get:71 http://ftpmaster.internal/ubuntu resolute/main s390x python3-webencodings all 0.5.1-5build1 [11.7 kB] 83s Get:72 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-tinycss2 all 1.5.1-1 [23.3 kB] 83s Get:73 http://ftpmaster.internal/ubuntu resolute/main s390x python3-html5lib all 1.2-3 [90.6 kB] 83s Get:74 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-bleach all 6.3.0-1 [44.2 kB] 83s Get:75 http://ftpmaster.internal/ubuntu resolute/main s390x python3-soupsieve all 2.8.3-1 [34.0 kB] 83s Get:76 http://ftpmaster.internal/ubuntu resolute/main s390x python3-bs4 all 4.14.3-2build1 [84.8 kB] 83s Get:77 http://ftpmaster.internal/ubuntu resolute/main s390x python3-defusedxml all 0.7.1-3build1 [42.4 kB] 83s Get:78 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 83s Get:79 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-mistune all 3.1.4-1 [35.0 kB] 83s Get:80 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-fastjsonschema all 2.21.1-1 [20.4 kB] 83s Get:81 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-nbformat all 5.10.4-1 [39.2 kB] 83s Get:82 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-nbclient all 0.10.4-1 [22.6 kB] 83s Get:83 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pandocfilters all 1.5.1-1 [23.6 kB] 83s Get:84 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-nbconvert all 7.16.6-1 [140 kB] 84s Get:85 http://ftpmaster.internal/ubuntu resolute/main s390x python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 84s Get:86 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-send2trash all 1.8.3-1 [14.6 kB] 84s Get:87 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 84s Get:88 http://ftpmaster.internal/ubuntu resolute/universe s390x jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 84s Get:89 http://ftpmaster.internal/ubuntu resolute/main s390x sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 84s Get:90 http://ftpmaster.internal/ubuntu resolute/universe s390x python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 84s Get:91 http://ftpmaster.internal/ubuntu resolute/main s390x python3-all s390x 3.13.9-3 [890 B] 84s Get:92 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-iniconfig all 2.1.0-2 [6962 B] 84s Get:93 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pluggy all 1.6.0-2 [21.1 kB] 84s Get:94 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pytest all 9.0.2-2 [277 kB] 84s Get:95 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-requests-unixsocket all 1.0.1-1 [8620 B] 86s Fetched 41.2 MB in 6s (6404 kB/s) 86s Selecting previously unselected package fonts-lato. 87s (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 ... 61953 files and directories currently installed.) 87s Preparing to unpack .../00-fonts-lato_2.015-1build1_all.deb ... 87s Unpacking fonts-lato (2.015-1build1) ... 87s Selecting previously unselected package libpython3.14-minimal:s390x. 87s Preparing to unpack .../01-libpython3.14-minimal_3.14.2-1_s390x.deb ... 87s Unpacking libpython3.14-minimal:s390x (3.14.2-1) ... 87s Selecting previously unselected package python3.14-minimal. 87s Preparing to unpack .../02-python3.14-minimal_3.14.2-1_s390x.deb ... 87s Unpacking python3.14-minimal (3.14.2-1) ... 87s Selecting previously unselected package fonts-font-awesome. 87s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 87s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 87s Selecting previously unselected package fonts-glyphicons-halflings. 87s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 87s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 88s Selecting previously unselected package fonts-mathjax. 88s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 88s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 88s Selecting previously unselected package libbabeltrace1:s390x. 88s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_s390x.deb ... 88s Unpacking libbabeltrace1:s390x (1.5.11-5) ... 88s Selecting previously unselected package libpython3.14-stdlib:s390x. 88s Preparing to unpack .../07-libpython3.14-stdlib_3.14.2-1_s390x.deb ... 88s Unpacking libpython3.14-stdlib:s390x (3.14.2-1) ... 88s Selecting previously unselected package libpython3.14:s390x. 88s Preparing to unpack .../08-libpython3.14_3.14.2-1_s390x.deb ... 88s Unpacking libpython3.14:s390x (3.14.2-1) ... 88s Selecting previously unselected package libsource-highlight-common. 88s Preparing to unpack .../09-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 88s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 88s Selecting previously unselected package libsource-highlight4t64:s390x. 88s Preparing to unpack .../10-libsource-highlight4t64_3.1.9-4.3build2_s390x.deb ... 88s Unpacking libsource-highlight4t64:s390x (3.1.9-4.3build2) ... 88s Selecting previously unselected package gdb. 88s Preparing to unpack .../11-gdb_17.1-1ubuntu2_s390x.deb ... 88s Unpacking gdb (17.1-1ubuntu2) ... 88s Selecting previously unselected package python3-platformdirs. 88s Preparing to unpack .../12-python3-platformdirs_4.5.1-1_all.deb ... 88s Unpacking python3-platformdirs (4.5.1-1) ... 89s Selecting previously unselected package python3-traitlets. 89s Preparing to unpack .../13-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 89s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 89s Selecting previously unselected package python3-jupyter-core. 89s Preparing to unpack .../14-python3-jupyter-core_5.9.1-1_all.deb ... 89s Unpacking python3-jupyter-core (5.9.1-1) ... 89s Selecting previously unselected package jupyter-core. 89s Preparing to unpack .../15-jupyter-core_5.9.1-1_all.deb ... 89s Unpacking jupyter-core (5.9.1-1) ... 89s Selecting previously unselected package libjs-underscore. 89s Preparing to unpack .../16-libjs-underscore_1.13.7~dfsg+~1.13.0-6_all.deb ... 89s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-6) ... 89s Selecting previously unselected package libjs-backbone. 89s Preparing to unpack .../17-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 89s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 89s Selecting previously unselected package libjs-bootstrap. 89s Preparing to unpack .../18-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 89s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 89s Selecting previously unselected package libjs-jquery. 89s Preparing to unpack .../19-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 89s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 89s Selecting previously unselected package libjs-bootstrap-tour. 89s Preparing to unpack .../20-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 89s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 89s Selecting previously unselected package libjs-codemirror. 89s Preparing to unpack .../21-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 89s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 90s Selecting previously unselected package libjs-es6-promise. 90s Preparing to unpack .../22-libjs-es6-promise_4.2.8-12_all.deb ... 90s Unpacking libjs-es6-promise (4.2.8-12) ... 90s Selecting previously unselected package node-jed. 90s Preparing to unpack .../23-node-jed_1.1.1-4_all.deb ... 90s Unpacking node-jed (1.1.1-4) ... 90s Selecting previously unselected package libjs-jed. 90s Preparing to unpack .../24-libjs-jed_1.1.1-4_all.deb ... 90s Unpacking libjs-jed (1.1.1-4) ... 90s Selecting previously unselected package libjs-jquery-typeahead. 90s Preparing to unpack .../25-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 90s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 90s Selecting previously unselected package libjs-jquery-ui. 90s Preparing to unpack .../26-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 90s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 90s Selecting previously unselected package libjs-marked. 90s Preparing to unpack .../27-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 90s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 90s Selecting previously unselected package libjs-mathjax. 90s Preparing to unpack .../28-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 90s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 92s Selecting previously unselected package libjs-moment. 92s Preparing to unpack .../29-libjs-moment_2.29.4+ds-1_all.deb ... 92s Unpacking libjs-moment (2.29.4+ds-1) ... 92s Selecting previously unselected package libjs-requirejs. 92s Preparing to unpack .../30-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 92s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 92s Selecting previously unselected package libjs-requirejs-text. 92s Preparing to unpack .../31-libjs-requirejs-text_2.0.12-2_all.deb ... 92s Unpacking libjs-requirejs-text (2.0.12-2) ... 92s Selecting previously unselected package libjs-text-encoding. 92s Preparing to unpack .../32-libjs-text-encoding_0.7.0-5_all.deb ... 92s Unpacking libjs-text-encoding (0.7.0-5) ... 92s Selecting previously unselected package libjs-xterm. 92s Preparing to unpack .../33-libjs-xterm_5.3.0-4_all.deb ... 92s Unpacking libjs-xterm (5.3.0-4) ... 92s Selecting previously unselected package python3-tornado. 92s Preparing to unpack .../34-python3-tornado_6.5.4-0.1_s390x.deb ... 92s Unpacking python3-tornado (6.5.4-0.1) ... 94s Selecting previously unselected package python3-terminado. 94s Preparing to unpack .../35-python3-terminado_0.18.1-1_all.deb ... 94s Unpacking python3-terminado (0.18.1-1) ... 94s Selecting previously unselected package libargon2-1:s390x. 94s Preparing to unpack .../36-libargon2-1_0~20190702+dfsg-5_s390x.deb ... 94s Unpacking libargon2-1:s390x (0~20190702+dfsg-5) ... 94s Selecting previously unselected package python3-ply. 94s Preparing to unpack .../37-python3-ply_3.11-10_all.deb ... 94s Unpacking python3-ply (3.11-10) ... 94s Selecting previously unselected package python3-pycparser. 94s Preparing to unpack .../38-python3-pycparser_2.23-2_all.deb ... 94s Unpacking python3-pycparser (2.23-2) ... 94s Selecting previously unselected package python3-cffi. 94s Preparing to unpack .../39-python3-cffi_2.0.0-2_all.deb ... 94s Unpacking python3-cffi (2.0.0-2) ... 94s Selecting previously unselected package python3-argon2-cffi-bindings. 94s Preparing to unpack .../40-python3-argon2-cffi-bindings_25.1.0-2_s390x.deb ... 94s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 94s Selecting previously unselected package python3-argon2. 94s Preparing to unpack .../41-python3-argon2_25.1.0-2_s390x.deb ... 94s Unpacking python3-argon2 (25.1.0-2) ... 94s Selecting previously unselected package python3-comm. 94s Preparing to unpack .../42-python3-comm_0.2.1-1build1_all.deb ... 94s Unpacking python3-comm (0.2.1-1build1) ... 94s Selecting previously unselected package python3.14. 94s Preparing to unpack .../43-python3.14_3.14.2-1_s390x.deb ... 94s Unpacking python3.14 (3.14.2-1) ... 94s Selecting previously unselected package python3-coverage. 94s Preparing to unpack .../44-python3-coverage_7.8.2+dfsg1-1ubuntu1_s390x.deb ... 94s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 94s Selecting previously unselected package python3-debugpy. 94s Preparing to unpack .../45-python3-debugpy_1.8.19+ds-1ubuntu1_s390x.deb ... 94s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 94s Selecting previously unselected package python3-decorator. 94s Preparing to unpack .../46-python3-decorator_5.2.1-2_all.deb ... 94s Unpacking python3-decorator (5.2.1-2) ... 94s Selecting previously unselected package python3-parso. 94s Preparing to unpack .../47-python3-parso_0.8.5-1_all.deb ... 94s Unpacking python3-parso (0.8.5-1) ... 94s Selecting previously unselected package python3-typeshed. 94s Preparing to unpack .../48-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 94s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 95s Selecting previously unselected package python3-jedi. 95s Preparing to unpack .../49-python3-jedi_0.19.1+ds1-1build1_all.deb ... 95s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 96s Selecting previously unselected package python3-matplotlib-inline. 96s Preparing to unpack .../50-python3-matplotlib-inline_0.2.1-1_all.deb ... 96s Unpacking python3-matplotlib-inline (0.2.1-1) ... 96s Selecting previously unselected package python3-wcwidth. 96s Preparing to unpack .../51-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 96s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 96s Selecting previously unselected package python3-prompt-toolkit. 96s Preparing to unpack .../52-python3-prompt-toolkit_3.0.52-2_all.deb ... 96s Unpacking python3-prompt-toolkit (3.0.52-2) ... 96s Selecting previously unselected package python3-astroid. 96s Preparing to unpack .../53-python3-astroid_4.0.2-1ubuntu1_all.deb ... 96s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 96s Selecting previously unselected package python3-asttokens. 96s Preparing to unpack .../54-python3-asttokens_3.0.1-1_all.deb ... 96s Unpacking python3-asttokens (3.0.1-1) ... 96s Selecting previously unselected package python3-executing. 96s Preparing to unpack .../55-python3-executing_2.2.1-0.1_all.deb ... 96s Unpacking python3-executing (2.2.1-0.1) ... 96s Selecting previously unselected package python3-pure-eval. 96s Preparing to unpack .../56-python3-pure-eval_0.2.3-1_all.deb ... 96s Unpacking python3-pure-eval (0.2.3-1) ... 96s Selecting previously unselected package python3-stack-data. 96s Preparing to unpack .../57-python3-stack-data_0.6.3-3_all.deb ... 96s Unpacking python3-stack-data (0.6.3-3) ... 96s Selecting previously unselected package python3-ipython. 96s Preparing to unpack .../58-python3-ipython_8.35.0-2_all.deb ... 96s Unpacking python3-ipython (8.35.0-2) ... 97s Selecting previously unselected package python3-psutil. 97s Preparing to unpack .../59-python3-psutil_7.1.0-1ubuntu1_s390x.deb ... 97s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 97s Selecting previously unselected package libnorm1t64:s390x. 97s Preparing to unpack .../60-libnorm1t64_1.5.9+dfsg-4_s390x.deb ... 97s Unpacking libnorm1t64:s390x (1.5.9+dfsg-4) ... 97s Selecting previously unselected package libpgm-5.3-0t64:s390x. 97s Preparing to unpack .../61-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_s390x.deb ... 97s Unpacking libpgm-5.3-0t64:s390x (5.3.128~dfsg-2.1build2) ... 97s Selecting previously unselected package libsodium23:s390x. 97s Preparing to unpack .../62-libsodium23_1.0.18-2_s390x.deb ... 97s Unpacking libsodium23:s390x (1.0.18-2) ... 97s Selecting previously unselected package libzmq5:s390x. 97s Preparing to unpack .../63-libzmq5_4.3.5-1build3_s390x.deb ... 97s Unpacking libzmq5:s390x (4.3.5-1build3) ... 97s Selecting previously unselected package python3-zmq. 97s Preparing to unpack .../64-python3-zmq_27.1.0-1_s390x.deb ... 97s Unpacking python3-zmq (27.1.0-1) ... 97s Selecting previously unselected package python3-jupyter-client. 97s Preparing to unpack .../65-python3-jupyter-client_8.7.0-1_all.deb ... 97s Unpacking python3-jupyter-client (8.7.0-1) ... 97s Selecting previously unselected package python3-nest-asyncio. 97s Preparing to unpack .../66-python3-nest-asyncio_1.6.0-1_all.deb ... 97s Unpacking python3-nest-asyncio (1.6.0-1) ... 97s Selecting previously unselected package python3-ipykernel. 97s Preparing to unpack .../67-python3-ipykernel_6.30.1-1_all.deb ... 97s Unpacking python3-ipykernel (6.30.1-1) ... 97s Selecting previously unselected package python3-ipython-genutils. 97s Preparing to unpack .../68-python3-ipython-genutils_0.2.0-7_all.deb ... 97s Unpacking python3-ipython-genutils (0.2.0-7) ... 97s Selecting previously unselected package python-tinycss2-common. 97s Preparing to unpack .../69-python-tinycss2-common_1.5.1-1_all.deb ... 97s Unpacking python-tinycss2-common (1.5.1-1) ... 97s Selecting previously unselected package python3-webencodings. 97s Preparing to unpack .../70-python3-webencodings_0.5.1-5build1_all.deb ... 97s Unpacking python3-webencodings (0.5.1-5build1) ... 97s Selecting previously unselected package python3-tinycss2. 97s Preparing to unpack .../71-python3-tinycss2_1.5.1-1_all.deb ... 97s Unpacking python3-tinycss2 (1.5.1-1) ... 97s Selecting previously unselected package python3-html5lib. 97s Preparing to unpack .../72-python3-html5lib_1.2-3_all.deb ... 97s Unpacking python3-html5lib (1.2-3) ... 97s Selecting previously unselected package python3-bleach. 97s Preparing to unpack .../73-python3-bleach_6.3.0-1_all.deb ... 97s Unpacking python3-bleach (6.3.0-1) ... 97s Selecting previously unselected package python3-soupsieve. 97s Preparing to unpack .../74-python3-soupsieve_2.8.3-1_all.deb ... 97s Unpacking python3-soupsieve (2.8.3-1) ... 97s Selecting previously unselected package python3-bs4. 97s Preparing to unpack .../75-python3-bs4_4.14.3-2build1_all.deb ... 97s Unpacking python3-bs4 (4.14.3-2build1) ... 99s Selecting previously unselected package python3-defusedxml. 99s Preparing to unpack .../76-python3-defusedxml_0.7.1-3build1_all.deb ... 99s Unpacking python3-defusedxml (0.7.1-3build1) ... 99s Selecting previously unselected package python3-jupyterlab-pygments. 99s Preparing to unpack .../77-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 99s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 99s Selecting previously unselected package python3-mistune. 99s Preparing to unpack .../78-python3-mistune_3.1.4-1_all.deb ... 99s Unpacking python3-mistune (3.1.4-1) ... 99s Selecting previously unselected package python3-fastjsonschema. 99s Preparing to unpack .../79-python3-fastjsonschema_2.21.1-1_all.deb ... 99s Unpacking python3-fastjsonschema (2.21.1-1) ... 99s Selecting previously unselected package python3-nbformat. 99s Preparing to unpack .../80-python3-nbformat_5.10.4-1_all.deb ... 99s Unpacking python3-nbformat (5.10.4-1) ... 99s Selecting previously unselected package python3-nbclient. 99s Preparing to unpack .../81-python3-nbclient_0.10.4-1_all.deb ... 99s Unpacking python3-nbclient (0.10.4-1) ... 99s Selecting previously unselected package python3-pandocfilters. 99s Preparing to unpack .../82-python3-pandocfilters_1.5.1-1_all.deb ... 99s Unpacking python3-pandocfilters (1.5.1-1) ... 99s Selecting previously unselected package python3-nbconvert. 99s Preparing to unpack .../83-python3-nbconvert_7.16.6-1_all.deb ... 99s Unpacking python3-nbconvert (7.16.6-1) ... 99s Selecting previously unselected package python3-prometheus-client. 99s Preparing to unpack .../84-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 99s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 99s Selecting previously unselected package python3-send2trash. 99s Preparing to unpack .../85-python3-send2trash_1.8.3-1_all.deb ... 99s Unpacking python3-send2trash (1.8.3-1) ... 99s Selecting previously unselected package python3-notebook. 99s Preparing to unpack .../86-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 99s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 99s Selecting previously unselected package jupyter-notebook. 99s Preparing to unpack .../87-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 99s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 99s Selecting previously unselected package sphinx-rtd-theme-common. 99s Preparing to unpack .../88-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 99s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 99s Selecting previously unselected package python-notebook-doc. 99s Preparing to unpack .../89-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 99s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 100s Selecting previously unselected package python3-all. 100s Preparing to unpack .../90-python3-all_3.13.9-3_s390x.deb ... 100s Unpacking python3-all (3.13.9-3) ... 100s Selecting previously unselected package python3-iniconfig. 100s Preparing to unpack .../91-python3-iniconfig_2.1.0-2_all.deb ... 100s Unpacking python3-iniconfig (2.1.0-2) ... 100s Selecting previously unselected package python3-pluggy. 100s Preparing to unpack .../92-python3-pluggy_1.6.0-2_all.deb ... 100s Unpacking python3-pluggy (1.6.0-2) ... 100s Selecting previously unselected package python3-pytest. 100s Preparing to unpack .../93-python3-pytest_9.0.2-2_all.deb ... 100s Unpacking python3-pytest (9.0.2-2) ... 100s Selecting previously unselected package python3-requests-unixsocket. 100s Preparing to unpack .../94-python3-requests-unixsocket_1.0.1-1_all.deb ... 100s Unpacking python3-requests-unixsocket (1.0.1-1) ... 100s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 100s Setting up python3-iniconfig (2.1.0-2) ... 101s Setting up python3-tornado (6.5.4-0.1) ... 104s Setting up libnorm1t64:s390x (1.5.9+dfsg-4) ... 104s Setting up python3-pure-eval (0.2.3-1) ... 104s Setting up python3-send2trash (1.8.3-1) ... 104s Setting up fonts-lato (2.015-1build1) ... 104s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 104s Setting up libsodium23:s390x (1.0.18-2) ... 104s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 104s Setting up libjs-requirejs-text (2.0.12-2) ... 104s Setting up python3-parso (0.8.5-1) ... 105s Setting up python3-defusedxml (0.7.1-3build1) ... 105s Setting up python3-ipython-genutils (0.2.0-7) ... 105s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 105s Setting up libargon2-1:s390x (0~20190702+dfsg-5) ... 105s Setting up python3-ply (3.11-10) ... 106s Setting up libpython3.14-minimal:s390x (3.14.2-1) ... 106s Setting up libjs-moment (2.29.4+ds-1) ... 106s Setting up python3-pandocfilters (1.5.1-1) ... 106s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 106s Setting up libjs-es6-promise (4.2.8-12) ... 106s Setting up libjs-text-encoding (0.7.0-5) ... 106s Setting up python3-webencodings (0.5.1-5build1) ... 107s Setting up python3-platformdirs (4.5.1-1) ... 108s Setting up python3-psutil (7.1.0-1ubuntu1) ... 110s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 110s Setting up python3-pycparser (2.23-2) ... 111s Setting up python3-requests-unixsocket (1.0.1-1) ... 111s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 112s Setting up libpgm-5.3-0t64:s390x (5.3.128~dfsg-2.1build2) ... 112s Setting up python3-decorator (5.2.1-2) ... 113s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 113s Setting up node-jed (1.1.1-4) ... 113s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 113s Setting up libjs-xterm (5.3.0-4) ... 113s Setting up python3-nest-asyncio (1.6.0-1) ... 114s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 114s Setting up libjs-jed (1.1.1-4) ... 114s Setting up python3-html5lib (1.2-3) ... 114s Setting up libbabeltrace1:s390x (1.5.11-5) ... 114s Setting up python3-pluggy (1.6.0-2) ... 115s Setting up python3-fastjsonschema (2.21.1-1) ... 115s Setting up python3-terminado (0.18.1-1) ... 116s Setting up python3-astroid (4.0.2-1ubuntu1) ... 117s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 118s Setting up python-tinycss2-common (1.5.1-1) ... 118s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 118s Setting up python3-mistune (3.1.4-1) ... 119s Setting up python3-soupsieve (2.8.3-1) ... 119s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 119s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 119s Setting up python3.14-minimal (3.14.2-1) ... 122s Setting up python3-jupyter-core (5.9.1-1) ... 123s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 123s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-6) ... 123s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 123s Setting up python3-prompt-toolkit (3.0.52-2) ... 125s Setting up python3-tinycss2 (1.5.1-1) ... 126s Setting up libzmq5:s390x (4.3.5-1build3) ... 126s Setting up python3-jedi (0.19.1+ds1-1build1) ... 127s Setting up libpython3.14-stdlib:s390x (3.14.2-1) ... 127s Setting up python3-asttokens (3.0.1-1) ... 127s Setting up python3-pytest (9.0.2-2) ... 129s Setting up python3-cffi (2.0.0-2) ... 130s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 130s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 130s Setting up libsource-highlight4t64:s390x (3.1.9-4.3build2) ... 130s Setting up python3-nbformat (5.10.4-1) ... 130s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 130s Setting up python3-bs4 (4.14.3-2build1) ... 131s Setting up python3-bleach (6.3.0-1) ... 131s Setting up python3-matplotlib-inline (0.2.1-1) ... 131s Setting up python3-comm (0.2.1-1build1) ... 132s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 132s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 132s Setting up python3-executing (2.2.1-0.1) ... 133s Setting up python3-zmq (27.1.0-1) ... 133s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 134s Setting up python3-argon2 (25.1.0-2) ... 134s Setting up libpython3.14:s390x (3.14.2-1) ... 134s Setting up python3-jupyter-client (8.7.0-1) ... 134s Setting up jupyter-core (5.9.1-1) ... 134s Setting up python3.14 (3.14.2-1) ... 137s Setting up python3-stack-data (0.6.3-3) ... 138s Setting up python3-all (3.13.9-3) ... 138s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 139s Setting up python3-nbclient (0.10.4-1) ... 139s Setting up gdb (17.1-1ubuntu2) ... 139s Setting up python3-ipython (8.35.0-2) ... 141s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 141s return result 141s Setting up python3-nbconvert (7.16.6-1) ... 142s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 143s Setting up python3-ipykernel (6.30.1-1) ... 144s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 144s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 144s Processing triggers for systemd (259-1ubuntu3) ... 145s Processing triggers for man-db (2.13.1-1) ... 147s Processing triggers for libc-bin (2.42-2ubuntu4) ... 148s autopkgtest [09:01:26]: test pytest: [----------------------- 148s Testing with python3.14 149s *** 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 156s ============================= test session starts ============================== 156s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 156s rootdir: /tmp/autopkgtest.g7xfi7/autopkgtest_tmp 156s plugins: typeguard-4.4.4 156s collected 330 items / 6 deselected / 324 selected 156s 157s auth/tests/test_login.py .. [ 0%] 159s auth/tests/test_security.py .... [ 1%] 159s bundler/tests/test_bundler_api.py ..... [ 3%] 160s bundler/tests/test_bundler_tools.py ............. [ 7%] 160s bundler/tests/test_bundlerextension.py ... [ 8%] 160s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 160s services/api/tests/test_api.py ... [ 11%] 160s services/config/tests/test_config_api.py ... [ 12%] 162s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 164s ................s...........ss..s......................... [ 38%] 164s services/contents/tests/test_fileio.py ... [ 39%] 164s services/contents/tests/test_largefilemanager.py . [ 39%] 166s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 166s .... [ 50%] 178s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 178s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 179s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 179s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 182s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 182s F [ 66%] 186s terminal/tests/test_terminals_api.py ........ [ 68%] 186s tests/test_config_manager.py . [ 68%] 187s tests/test_files.py ..... [ 70%] 187s tests/test_gateway.py ...... [ 72%] 187s tests/test_i18n.py . [ 72%] 187s tests/test_log.py . [ 72%] 188s tests/test_nbextensions.py ................................... [ 83%] 191s tests/test_notebookapp.py .......................... [ 91%] 191s tests/test_paths.py ... [ 92%] 191s tests/test_serialize.py .. [ 93%] 193s tests/test_serverextensions.py ..... [ 94%] 193s tests/test_traittypes.py ........... [ 98%] 195s tests/test_utils.py ....s [ 99%] 198s tree/tests/test_tree_handler.py . [100%] 198s 198s ==================================== ERRORS ==================================== 198s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 198s 198s self = 198s 198s def tearDown(self): 198s for k in self.kern_api.list().json(): 198s > self.kern_api.shutdown(k['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/089b554a-c037-4fb4-a5d7-51deeab4f89e 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 198s import functools 198s File "/usr/lib/python3.13/functools.py", line 18, in 198s from collections import namedtuple 198s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 198s from keyword import iskeyword as _iskeyword 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1113, in get_code 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpam8ayajn/runtime/kernel-089b554a-c037-4fb4-a5d7-51deeab4f89e.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57965 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47159 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 089b554a-c037-4fb4-a5d7-51deeab4f89e, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 27.860000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpam8ayajn/runtime/kernel-eec8e8f4-4804-41d5-8e44-f31eab42b482.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54351 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44185 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: eec8e8f4-4804-41d5-8e44-f31eab42b482, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.850000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: eec8e8f4-4804-41d5-8e44-f31eab42b482 198s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/eec8e8f4-4804-41d5-8e44-f31eab42b482/interrupt (::1) 0.540000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 198s yield maybe_future(km.restart_kernel(kernel_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 198s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 198s await ensure_async(kernel.restart_kernel(now=now)) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 198s await self._async_shutdown_kernel(now=now, restart=True) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/eec8e8f4-4804-41d5-8e44-f31eab42b482/restart (::1) 3.790000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 089b554a-c037-4fb4-a5d7-51deeab4f89e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 089b554a-c037-4fb4-a5d7-51deeab4f89e 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/089b554a-c037-4fb4-a5d7-51deeab4f89e (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/089b554a-c037-4fb4-a5d7-51deeab4f89e', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 198s yielded = ctx_run(next, result) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 198s yield maybe_future(km.shutdown_kernel(kernel_id)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s --------------------------- Captured stderr teardown --------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 198s from .asynchronous import AsyncKernelClient 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 198s from .client import AsyncKernelClient # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 12, in 198s from ..channels import AsyncZMQSocketChannel, HBChannel 198s File "/usr/lib/python3/dist-packages/jupyter_client/channels.py", line 17, in 198s from .session import Session 198s File "/usr/lib/python3/dist-packages/jupyter_client/session.py", line 22, in 198s import pprint 198s File "/usr/lib/python3.13/pprint.py", line 38, in 198s import dataclasses as _dataclasses 198s File "", line 1357, in _find_and_load 198s File "", line 417, in __enter__ 198s File "", line 426, in _get_module_lock 198s KeyboardInterrupt 198s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 198s 198s self = 198s 198s def tearDown(self): 198s for k in self.kern_api.list().json(): 198s > self.kern_api.shutdown(k['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c6ef63a9-f894-4437-af18-0d26c433044e 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm_8nmfjt/runtime/kernel-c6ef63a9-f894-4437-af18-0d26c433044e.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55549 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54591 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: c6ef63a9-f894-4437-af18-0d26c433044e, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.080000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm_8nmfjt/runtime/kernel-fe1f2275-7db7-4c46-bc5f-c284e3f957a8.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59481 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46183 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe1f2275-7db7-4c46-bc5f-c284e3f957a8, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 44.410000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.700000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: fe1f2275-7db7-4c46-bc5f-c284e3f957a8 198s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/fe1f2275-7db7-4c46-bc5f-c284e3f957a8/interrupt (::1) 0.820000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 198s yield maybe_future(km.restart_kernel(kernel_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 198s result = coro.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 198s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 198s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 198s yield self # This tells Task to wait for completion. 198s ^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 198s await ensure_async(kernel.restart_kernel(now=now)) 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 198s await self._async_shutdown_kernel(now=now, restart=True) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/fe1f2275-7db7-4c46-bc5f-c284e3f957a8/restart (::1) 3.970000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c6ef63a9-f894-4437-af18-0d26c433044e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6ef63a9-f894-4437-af18-0d26c433044e 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c6ef63a9-f894-4437-af18-0d26c433044e (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c6ef63a9-f894-4437-af18-0d26c433044e', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 198s yield maybe_future(km.shutdown_kernel(kernel_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c6ef63a9-f894-4437-af18-0d26c433044e (::1) 13.110000ms referer=None 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 198s from .asynchronous import AsyncKernelClient 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 198s from .client import AsyncKernelClient # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 198s import zmq.asyncio 198s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 198s import asyncio 198s File "/usr/lib/python3.13/asyncio/__init__.py", line 46, in 198s from .unix_events import * # pragma: no cover 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1152, in get_code 198s File "", line 781, in _compile_bytecode 198s KeyboardInterrupt 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 198s from glob import _Globber, _no_recurse_symlinks 198s File "/usr/lib/python3.13/glob.py", line 5, in 198s import re 198s File "/usr/lib/python3.13/re/__init__.py", line 125, in 198s import enum 198s File "/usr/lib/python3.13/enum.py", line 1645, in 198s class IntFlag(int, ReprEnum, Flag, boundary=KEEP): 198s ...<2 lines>... 198s """ 198s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 198s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 198s KeyboardInterrupt 198s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/04a2467a-226e-4d81-b891-14a0d870d02b 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-fb45223b-cca3-4d19-9c72-b4719488b79b.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42473 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59427 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: fb45223b-cca3-4d19-9c72-b4719488b79b, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 46.970000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.880000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.680000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f8a9e78-f389-483b-be28-2f6b0ab49f9b 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f8a9e78-f389-483b-be28-2f6b0ab49f9b 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c1770c5f-6173-4f03-8d73-973e34b6b977 (::1) 2.150000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fb45223b-cca3-4d19-9c72-b4719488b79b 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fb45223b-cca3-4d19-9c72-b4719488b79b 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/04a2467a-226e-4d81-b891-14a0d870d02b (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/04a2467a-226e-4d81-b891-14a0d870d02b', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 198s from .asynchronous import AsyncKernelClient 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 198s from .client import AsyncKernelClient # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 198s import zmq.asyncio 198s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 198s from zmq import backend 198s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 198s _ns = select_backend(first) 198s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 198s mod = import_module(name) 198s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 198s return _bootstrap._gcd_import(name[level:], package, level) 198s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 198s from . import _zmq 198s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 198s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 134, in 198s class SocketOption(IntEnum): 198s ...<138 lines>... 198s NORM_PUSH = 124 198s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 198s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 198s File "/usr/lib/python3.13/enum.py", line 269, in __set_name__ 198s if not hasattr(enum_member, '_value_'): 198s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 198s KeyboardInterrupt 198s Error calling __set_name__ on '_proto_member' instance 'RCVHWM' in 'SocketOption' 198s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 9, in 198s from .manager import AsyncKernelManager, KernelManager, run_kernel 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 36, in 198s from . import kernelspec 198s File "/usr/lib/python3/dist-packages/jupyter_client/kernelspec.py", line 18, in 198s from .provisioning import KernelProvisionerFactory as KPF # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/provisioning/__init__.py", line 1, in 198s from .factory import KernelProvisionerFactory # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/provisioning/factory.py", line 8, in 198s from importlib.metadata import EntryPoint, entry_points 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1152, in get_code 198s File "", line 781, in _compile_bytecode 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47335 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42371 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 58.750000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-a91af3ca-bbdf-48cb-af9a-a58cc2ab855e.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41303 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54197 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: a91af3ca-bbdf-48cb-af9a-a58cc2ab855e, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.550000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 198s km.shutdown_kernel(before['kernel']['id']) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 7.030000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.780000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a91af3ca-bbdf-48cb-af9a-a58cc2ab855e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a91af3ca-bbdf-48cb-af9a-a58cc2ab855e 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 5.860000ms referer=None 198s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 198s from .asynchronous import AsyncKernelClient 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 198s from .client import AsyncKernelClient # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 198s import zmq.asyncio 198s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 198s import asyncio 198s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 198s from .base_events import * 198s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 198s from . import coroutines 198s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 198s import inspect 198s File "/usr/lib/python3.13/inspect.py", line 145, in 198s import ast 198s File "/usr/lib/python3.13/ast.py", line 739, in 198s class _Unparser(NodeVisitor): 198s ...<1073 lines>... 198s self.interleave(lambda: self.write(" | "), self.traverse, node.patterns) 198s File "/usr/lib/python3.13/ast.py", line 1514, in _Unparser 198s binop_rassoc = frozenset(("**",)) 198s KeyboardInterrupt 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-3e433491-fa7d-411b-b3ba-d86be0558022.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32771 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51535 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3e433491-fa7d-411b-b3ba-d86be0558022, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a91af3ca-bbdf-48cb-af9a-a58cc2ab855e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a91af3ca-bbdf-48cb-af9a-a58cc2ab855e 198s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 13.840000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3e433491-fa7d-411b-b3ba-d86be0558022 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3e433491-fa7d-411b-b3ba-d86be0558022 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 5.300000ms referer=None 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 198s from .asynchronous import AsyncKernelClient 198s File "", line 1360, in _find_and_load 198s File "", line 1322, in _find_and_load_unlocked 198s File "", line 1262, in _find_spec 198s File "", line 1556, in find_spec 198s File "", line 1530, in _get_spec 198s File "", line 1648, in find_spec 198s KeyboardInterrupt 198s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0160cea3-b86a-4269-8355-549e7fc7299f 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-a0d44c7a-23de-462e-b938-ac5c360a37f8.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50041 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40923 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0d44c7a-23de-462e-b938-ac5c360a37f8, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 49.710000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 116.030000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 55.660000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 822b9f98-147e-4ef5-a576-b917fd48ee44 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 822b9f98-147e-4ef5-a576-b917fd48ee44 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3a265557-679d-4b03-81db-ec5887194c83 (::1) 0.750000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0d44c7a-23de-462e-b938-ac5c360a37f8 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0d44c7a-23de-462e-b938-ac5c360a37f8 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0160cea3-b86a-4269-8355-549e7fc7299f (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0160cea3-b86a-4269-8355-549e7fc7299f', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0160cea3-b86a-4269-8355-549e7fc7299f (::1) 5.870000ms referer=None 198s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 198s from .asynchronous import AsyncKernelClient 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 198s from .client import AsyncKernelClient # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 198s import zmq.asyncio 198s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 198s from zmq import sugar 198s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 198s from zmq.sugar import context, frame, poll, socket, tracker, version 198s File "/usr/lib/python3/dist-packages/zmq/sugar/tracker.py", line 15, in 198s class MessageTracker: 198s ...<95 lines>... 198s tic = toc 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-6611a680-f929-4386-9704-432a20fa0a32.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45197 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60137 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6611a680-f929-4386-9704-432a20fa0a32, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.990000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-75cd9d03-c1e0-4ae5-a57c-29376c5f7f07.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47321 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44901 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.370000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6611a680-f929-4386-9704-432a20fa0a32 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6611a680-f929-4386-9704-432a20fa0a32 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 198s yield maybe_future( 198s km.shutdown_kernel(before['kernel']['id']) 198s ) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 5.500000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 5.810000ms referer=None 198s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ---------------------------- Captured stderr setup ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 198s from typing import TYPE_CHECKING, Any 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1152, in get_code 198s File "", line 781, in _compile_bytecode 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.670000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-d499a77a-9b80-41c5-99f0-7f6c1c30d78b.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38997 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42797 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: d499a77a-9b80-41c5-99f0-7f6c1c30d78b, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07 198s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 13.660000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.250000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.490000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d499a77a-9b80-41c5-99f0-7f6c1c30d78b 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d499a77a-9b80-41c5-99f0-7f6c1c30d78b 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s =================================== FAILURES =================================== 198s ______________________ KernelAPITest.test_default_kernel _______________________ 198s 198s self = 198s 198s def tearDown(self): 198s for k in self.kern_api.list().json(): 198s > self.kern_api.shutdown(k['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2bc78d4e-4177-4160-9b3f-6625d9effd72 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ------------------------------ Captured log setup ------------------------------ 198s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpam8ayajn/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpam8ayajn/etc/jupyter'] for config files 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpam8ayajn/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpam8ayajn/config 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpam8ayajn/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpam8ayajn/config 198s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpam8ayajn/notebooks 198s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 198s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 198s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 198s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 198s WARNING NotebookApp:handlers.py:612 Forbidden 198s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.120000ms referer=None 198s ----------------------------- Captured stderr call ----------------------------- 198s Fatal Python error: init_import_site: Failed to import the site module 198s Python runtime state: initialized 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpam8ayajn/runtime/kernel-2bc78d4e-4177-4160-9b3f-6625d9effd72.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37431 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58813 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2bc78d4e-4177-4160-9b3f-6625d9effd72, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 183.910000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 104.080000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2bc78d4e-4177-4160-9b3f-6625d9effd72 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2bc78d4e-4177-4160-9b3f-6625d9effd72 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2bc78d4e-4177-4160-9b3f-6625d9effd72 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2bc78d4e-4177-4160-9b3f-6625d9effd72', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 198s yielded = ctx_run(next, result) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 198s yield maybe_future(km.shutdown_kernel(kernel_id)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2bc78d4e-4177-4160-9b3f-6625d9effd72 (::1) 7.960000ms referer=None 198s --------------------------- Captured stderr teardown --------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/site.py", line 79, in 198s import os 198s File "/usr/lib/python3.13/os.py", line 61, in 198s import posixpath as path 198s File "/usr/lib/python3.13/posixpath.py", line 29, in 198s import genericpath 198s File "", line 1357, in _find_and_load 198s File "", line 418, in __enter__ 198s File "", line 311, in acquire 198s File "", line 162, in __enter__ 198s KeyboardInterrupt 198s ______________________ KernelAPITest.test_kernel_handler _______________________ 198s 198s self = 198s 198s def test_kernel_handler(self): 198s # GET kernel with given id 198s kid = self.kern_api.start().json()['id'] 198s r = self.kern_api.get(kid) 198s kern1 = r.json() 198s self.assertEqual(r.status_code, 200) 198s assert isinstance(kern1, dict) 198s self.assertIn('id', kern1) 198s self.assertEqual(kern1['id'], kid) 198s 198s # Request a bad kernel id and check that a JSON 198s # message is returned! 198s bad_id = '111-111-111-111-111' 198s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 198s self.kern_api.get(bad_id) 198s 198s # DELETE kernel with id 198s > r = self.kern_api.shutdown(kid) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5b0ccc15-5199-43f2-b119-94585f954ab9 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 198s from glob import _Globber, _no_recurse_symlinks 198s File "/usr/lib/python3.13/glob.py", line 5, in 198s import re 198s File "/usr/lib/python3.13/re/__init__.py", line 125, in 198s import enum 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1115, in get_code 198s File "", line 1215, in get_data 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpam8ayajn/runtime/kernel-5b0ccc15-5199-43f2-b119-94585f954ab9.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60117 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58333 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5b0ccc15-5199-43f2-b119-94585f954ab9, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.330000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/5b0ccc15-5199-43f2-b119-94585f954ab9 (::1) 1.990000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s 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 198s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 198s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.630000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b0ccc15-5199-43f2-b119-94585f954ab9 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b0ccc15-5199-43f2-b119-94585f954ab9 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5b0ccc15-5199-43f2-b119-94585f954ab9 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5b0ccc15-5199-43f2-b119-94585f954ab9', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 198s yielded = ctx_run(next, result) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 198s yield maybe_future(km.shutdown_kernel(kernel_id)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5b0ccc15-5199-43f2-b119-94585f954ab9 (::1) 8.490000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.230000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2bc78d4e-4177-4160-9b3f-6625d9effd72 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2bc78d4e-4177-4160-9b3f-6625d9effd72 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2bc78d4e-4177-4160-9b3f-6625d9effd72 (::1) 0.580000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b0ccc15-5199-43f2-b119-94585f954ab9 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b0ccc15-5199-43f2-b119-94585f954ab9 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5b0ccc15-5199-43f2-b119-94585f954ab9 (::1) 3.030000ms 198s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 198s 198s self = 198s 198s def test_main_kernel_handler(self): 198s # POST request 198s r = self.kern_api.start() 198s kern1 = r.json() 198s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 198s self.assertEqual(r.status_code, 201) 198s self.assertIsInstance(kern1, dict) 198s 198s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 198s expected_csp = '; '.join([ 198s "frame-ancestors 'self'", 198s 'report-uri ' + report_uri, 198s "default-src 'none'" 198s ]) 198s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 198s 198s # GET request 198s r = self.kern_api.list() 198s self.assertEqual(r.status_code, 200) 198s assert isinstance(r.json(), list) 198s self.assertEqual(r.json()[0]['id'], kern1['id']) 198s self.assertEqual(r.json()[0]['name'], kern1['name']) 198s 198s # create another kernel and check that they both are added to the 198s # list of kernels from a GET request 198s kern2 = self.kern_api.start().json() 198s assert isinstance(kern2, dict) 198s r = self.kern_api.list() 198s kernels = r.json() 198s self.assertEqual(r.status_code, 200) 198s assert isinstance(kernels, list) 198s self.assertEqual(len(kernels), 2) 198s 198s # Interrupt a kernel 198s r = self.kern_api.interrupt(kern2['id']) 198s self.assertEqual(r.status_code, 204) 198s 198s # Restart a kernel 198s > r = self.kern_api.restart(kern2['id']) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 198s return self._req('POST', url_path_join(id, 'restart')) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/eec8e8f4-4804-41d5-8e44-f31eab42b482/restart 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 198s import functools 198s File "/usr/lib/python3.13/functools.py", line 18, in 198s from collections import namedtuple 198s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 198s from keyword import iskeyword as _iskeyword 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1113, in get_code 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpam8ayajn/runtime/kernel-089b554a-c037-4fb4-a5d7-51deeab4f89e.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57965 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47159 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 089b554a-c037-4fb4-a5d7-51deeab4f89e, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 27.860000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpam8ayajn/runtime/kernel-eec8e8f4-4804-41d5-8e44-f31eab42b482.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54351 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44185 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: eec8e8f4-4804-41d5-8e44-f31eab42b482, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.850000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: eec8e8f4-4804-41d5-8e44-f31eab42b482 198s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/eec8e8f4-4804-41d5-8e44-f31eab42b482/interrupt (::1) 0.540000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 198s yield maybe_future(km.restart_kernel(kernel_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 198s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 198s await ensure_async(kernel.restart_kernel(now=now)) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 198s await self._async_shutdown_kernel(now=now, restart=True) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/eec8e8f4-4804-41d5-8e44-f31eab42b482/restart (::1) 3.790000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 089b554a-c037-4fb4-a5d7-51deeab4f89e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 089b554a-c037-4fb4-a5d7-51deeab4f89e 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/089b554a-c037-4fb4-a5d7-51deeab4f89e (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/089b554a-c037-4fb4-a5d7-51deeab4f89e', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 198s yielded = ctx_run(next, result) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 198s yield maybe_future(km.shutdown_kernel(kernel_id)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ________________________ KernelAPITest.test_no_kernels _________________________ 198s 198s self = 198s 198s def test_no_kernels(self): 198s """Make sure there are no kernels running at the start""" 198s kernels = self.kern_api.list().json() 198s > self.assertEqual(kernels, []) 198s E AssertionError: Lists differ: [{'id': '089b554a-c037-4fb4-a5d7-51deeab4f[281 chars]: 0}] != [] 198s E 198s E First list contains 2 additional elements. 198s E First extra element 0: 198s E {'id': '089b554a-c037-4fb4-a5d7-51deeab4f89e', 'name': 'python3', 'last_activity': '2026-02-02T09:03:27.775363Z', 'execution_state': 'starting', 'connections': 0} 198s E 198s E + [] 198s E - [{'connections': 0, 198s E - 'execution_state': 'starting', 198s E - 'id': '089b554a-c037-4fb4-a5d7-51deeab4f89e', 198s E - 'last_activity': '2026-02-02T09:03:27.775363Z', 198s E - 'name': 'python3'}, 198s E - {'connections': 0, 198s E - 'execution_state': 'starting', 198s E - 'id': 'eec8e8f4-4804-41d5-8e44-f31eab42b482', 198s E - 'last_activity': '2026-02-02T09:03:27.805305Z', 198s E - 'name': 'python3'}] 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.660000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 089b554a-c037-4fb4-a5d7-51deeab4f89e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 089b554a-c037-4fb4-a5d7-51deeab4f89e 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/089b554a-c037-4fb4-a5d7-51deeab4f89e (::1) 0.620000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eec8e8f4-4804-41d5-8e44-f31eab42b482 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eec8e8f4-4804-41d5-8e44-f31eab42b482 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/eec8e8f4-4804-41d5-8e44-f31eab42b482 (::1) 0.760000ms 198s ---------------------------- Captured log teardown ----------------------------- 198s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 198s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 198s _____________________ AsyncKernelAPITest.test_connections ______________________ 198s 198s self = 198s 198s def tearDown(self): 198s for k in self.kern_api.list().json(): 198s > self.kern_api.shutdown(k['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ------------------------------ Captured log setup ------------------------------ 198s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpm_8nmfjt/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpm_8nmfjt/etc/jupyter'] for config files 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpm_8nmfjt/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpm_8nmfjt/config 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpm_8nmfjt/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpm_8nmfjt/config 198s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpm_8nmfjt/notebooks 198s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 198s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 198s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 198s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 198s WARNING NotebookApp:handlers.py:612 Forbidden 198s ------------------------------ Captured log call ------------------------------- 198s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.850000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm_8nmfjt/runtime/kernel-273e44d7-ef12-4c0a-9045-477dbf3edc13.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59783 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46391 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 273e44d7-ef12-4c0a-9045-477dbf3edc13, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.740000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13 (::1) 0.470000ms 198s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13/channels 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 198s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60551 198s 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/'}]} 198s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 273e44d7-ef12-4c0a-9045-477dbf3edc13) to 5.4 (client). 198s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13/channels (::1) 760.280000ms 198s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13/channels 198s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46391 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60551 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59783 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37355 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60551 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59783 198s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 198s Setting websocket_ping_timeout=30000 198s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13 (::1) 2.290000ms 198s DEBUG NotebookApp:kernelmanager.py:423 activity on 273e44d7-ef12-4c0a-9045-477dbf3edc13: status (busy) 198s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:kernelmanager.py:423 activity on 273e44d7-ef12-4c0a-9045-477dbf3edc13: status (busy) 198s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:kernelmanager.py:423 activity on 273e44d7-ef12-4c0a-9045-477dbf3edc13: status (idle) 198s DEBUG NotebookApp:kernelmanager.py:423 activity on 273e44d7-ef12-4c0a-9045-477dbf3edc13: status (idle) 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13 (::1) 1.780000ms 198s DEBUG NotebookApp:handlers.py:579 Websocket closed 273e44d7-ef12-4c0a-9045-477dbf3edc13:3335d526-76fe675a437620a1c30db072 198s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 273e44d7-ef12-4c0a-9045-477dbf3edc13:3335d526-76fe675a437620a1c30db072 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 273e44d7-ef12-4c0a-9045-477dbf3edc13:iopub 198s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 273e44d7-ef12-4c0a-9045-477dbf3edc13:iopub 198s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 273e44d7-ef12-4c0a-9045-477dbf3edc13:iopub 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13 (::1) 1.510000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13 (::1) 1.450000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.080000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 273e44d7-ef12-4c0a-9045-477dbf3edc13:3335d526-76fe675a437620a1c30db072 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 198s yield maybe_future(km.shutdown_kernel(kernel_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 198s 198s self = 198s 198s def tearDown(self): 198s for k in self.kern_api.list().json(): 198s > self.kern_api.shutdown(k['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7c11142e-3c83-4c20-b7aa-a80104ac7071 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm_8nmfjt/runtime/kernel-7c11142e-3c83-4c20-b7aa-a80104ac7071.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41165 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51043 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7c11142e-3c83-4c20-b7aa-a80104ac7071, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 35.380000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.300000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/273e44d7-ef12-4c0a-9045-477dbf3edc13 (::1) 1.520000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c11142e-3c83-4c20-b7aa-a80104ac7071 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c11142e-3c83-4c20-b7aa-a80104ac7071 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7c11142e-3c83-4c20-b7aa-a80104ac7071 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7c11142e-3c83-4c20-b7aa-a80104ac7071', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 198s yield maybe_future(km.shutdown_kernel(kernel_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s --------------------------- Captured stderr teardown --------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 198s import functools 198s File "/usr/lib/python3.13/functools.py", line 18, in 198s from collections import namedtuple 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1152, in get_code 198s File "", line 781, in _compile_bytecode 198s KeyboardInterrupt 198s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 198s 198s self = 198s 198s def test_kernel_handler(self): 198s # GET kernel with given id 198s kid = self.kern_api.start().json()['id'] 198s r = self.kern_api.get(kid) 198s kern1 = r.json() 198s self.assertEqual(r.status_code, 200) 198s assert isinstance(kern1, dict) 198s self.assertIn('id', kern1) 198s self.assertEqual(kern1['id'], kid) 198s 198s # Request a bad kernel id and check that a JSON 198s # message is returned! 198s bad_id = '111-111-111-111-111' 198s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 198s self.kern_api.get(bad_id) 198s 198s # DELETE kernel with id 198s > r = self.kern_api.shutdown(kid) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 198s from subprocess import PIPE, Popen 198s File "/usr/lib/python3.13/subprocess.py", line 125, in 198s import selectors 198s File "/usr/lib/python3.13/selectors.py", line 60, in 198s class _SelectorMapping(Mapping): 198s ...<20 lines>... 198s return iter(self._selector._fd_to_key) 198s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 198s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm_8nmfjt/runtime/kernel-325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57437 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59177 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 26.000000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d (::1) 0.570000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s 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 198s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 198s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.070000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 198s yield maybe_future(km.shutdown_kernel(kernel_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d (::1) 6.770000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.660000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7c11142e-3c83-4c20-b7aa-a80104ac7071 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c11142e-3c83-4c20-b7aa-a80104ac7071 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7c11142e-3c83-4c20-b7aa-a80104ac7071 (::1) 0.800000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d (::1) 1.990000ms 198s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 198s 198s self = 198s 198s def test_main_kernel_handler(self): 198s # POST request 198s r = self.kern_api.start() 198s kern1 = r.json() 198s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 198s self.assertEqual(r.status_code, 201) 198s self.assertIsInstance(kern1, dict) 198s 198s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 198s expected_csp = '; '.join([ 198s "frame-ancestors 'self'", 198s 'report-uri ' + report_uri, 198s "default-src 'none'" 198s ]) 198s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 198s 198s # GET request 198s r = self.kern_api.list() 198s self.assertEqual(r.status_code, 200) 198s assert isinstance(r.json(), list) 198s self.assertEqual(r.json()[0]['id'], kern1['id']) 198s self.assertEqual(r.json()[0]['name'], kern1['name']) 198s 198s # create another kernel and check that they both are added to the 198s # list of kernels from a GET request 198s kern2 = self.kern_api.start().json() 198s assert isinstance(kern2, dict) 198s r = self.kern_api.list() 198s kernels = r.json() 198s self.assertEqual(r.status_code, 200) 198s assert isinstance(kernels, list) 198s self.assertEqual(len(kernels), 2) 198s 198s # Interrupt a kernel 198s r = self.kern_api.interrupt(kern2['id']) 198s self.assertEqual(r.status_code, 204) 198s 198s # Restart a kernel 198s > r = self.kern_api.restart(kern2['id']) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 198s return self._req('POST', url_path_join(id, 'restart')) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/fe1f2275-7db7-4c46-bc5f-c284e3f957a8/restart 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm_8nmfjt/runtime/kernel-c6ef63a9-f894-4437-af18-0d26c433044e.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55549 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54591 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: c6ef63a9-f894-4437-af18-0d26c433044e, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.080000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm_8nmfjt/runtime/kernel-fe1f2275-7db7-4c46-bc5f-c284e3f957a8.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59481 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46183 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe1f2275-7db7-4c46-bc5f-c284e3f957a8, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 44.410000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.700000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: fe1f2275-7db7-4c46-bc5f-c284e3f957a8 198s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/fe1f2275-7db7-4c46-bc5f-c284e3f957a8/interrupt (::1) 0.820000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 198s yield maybe_future(km.restart_kernel(kernel_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 198s result = coro.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 198s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 198s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 198s yield self # This tells Task to wait for completion. 198s ^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 198s await ensure_async(kernel.restart_kernel(now=now)) 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 198s await self._async_shutdown_kernel(now=now, restart=True) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/fe1f2275-7db7-4c46-bc5f-c284e3f957a8/restart (::1) 3.970000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c6ef63a9-f894-4437-af18-0d26c433044e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6ef63a9-f894-4437-af18-0d26c433044e 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c6ef63a9-f894-4437-af18-0d26c433044e (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c6ef63a9-f894-4437-af18-0d26c433044e', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 198s yield maybe_future(km.shutdown_kernel(kernel_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c6ef63a9-f894-4437-af18-0d26c433044e (::1) 13.110000ms referer=None 198s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 198s 198s self = 198s 198s def test_no_kernels(self): 198s """Make sure there are no kernels running at the start""" 198s kernels = self.kern_api.list().json() 198s > self.assertEqual(kernels, []) 198s E AssertionError: Lists differ: [{'id': 'c6ef63a9-f894-4437-af18-0d26c4330[281 chars]: 0}] != [] 198s E 198s E First list contains 2 additional elements. 198s E First extra element 0: 198s E {'id': 'c6ef63a9-f894-4437-af18-0d26c433044e', 'name': 'python3', 'last_activity': '2026-02-02T09:03:29.296460Z', 'execution_state': 'starting', 'connections': 0} 198s E 198s E + [] 198s E - [{'connections': 0, 198s E - 'execution_state': 'starting', 198s E - 'id': 'c6ef63a9-f894-4437-af18-0d26c433044e', 198s E - 'last_activity': '2026-02-02T09:03:29.296460Z', 198s E - 'name': 'python3'}, 198s E - {'connections': 0, 198s E - 'execution_state': 'starting', 198s E - 'id': 'fe1f2275-7db7-4c46-bc5f-c284e3f957a8', 198s E - 'last_activity': '2026-02-02T09:03:29.410073Z', 198s E - 'name': 'python3'}] 198s 198s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c6ef63a9-f894-4437-af18-0d26c433044e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6ef63a9-f894-4437-af18-0d26c433044e 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c6ef63a9-f894-4437-af18-0d26c433044e (::1) 3.960000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe1f2275-7db7-4c46-bc5f-c284e3f957a8 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe1f2275-7db7-4c46-bc5f-c284e3f957a8 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fe1f2275-7db7-4c46-bc5f-c284e3f957a8 (::1) 2.220000ms 198s ---------------------------- Captured log teardown ----------------------------- 198s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 325d7fa9-9050-4bf0-88b7-7e1e7bf1f74d 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 273e44d7-ef12-4c0a-9045-477dbf3edc13 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7c11142e-3c83-4c20-b7aa-a80104ac7071 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6ef63a9-f894-4437-af18-0d26c433044e 198s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 198s __________________________ SessionAPITest.test_create __________________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/61989c8a-abb8-40a1-8335-d95cb41acd40 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ------------------------------ Captured log setup ------------------------------ 198s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpr2g4t48h/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpr2g4t48h/etc/jupyter'] for config files 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpr2g4t48h/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpr2g4t48h/config 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpr2g4t48h/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpr2g4t48h/config 198s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpr2g4t48h/notebooks 198s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 198s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 198s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 198s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 198s WARNING NotebookApp:handlers.py:612 Forbidden 198s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.930000ms referer=None 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.030000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-fd1b5a78-a07f-4fa0-92bc-3c08be95e685.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43859 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43327 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: fd1b5a78-a07f-4fa0-92bc-3c08be95e685, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 22.330000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/61989c8a-abb8-40a1-8335-d95cb41acd40 (::1) 8.790000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd1b5a78-a07f-4fa0-92bc-3c08be95e685 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd1b5a78-a07f-4fa0-92bc-3c08be95e685 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/61989c8a-abb8-40a1-8335-d95cb41acd40 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/61989c8a-abb8-40a1-8335-d95cb41acd40', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/61989c8a-abb8-40a1-8335-d95cb41acd40 (::1) 7.300000ms referer=None 198s --------------------------- Captured stderr teardown --------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 198s from .asynchronous import AsyncKernelClient 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 198s from .client import AsyncKernelClient # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 198s import zmq.asyncio 198s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 198s import asyncio 198s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 198s from .base_events import * 198s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 198s import concurrent.futures 198s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 198s from concurrent.futures._base import (FIRST_COMPLETED, 198s ...<9 lines>... 198s as_completed) 198s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 198s import logging 198s File "/usr/lib/python3.13/logging/__init__.py", line 26, in 198s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 198s File "/usr/lib/python3.13/traceback.py", line 7, in 198s import textwrap 198s File "/usr/lib/python3.13/textwrap.py", line 17, in 198s class TextWrapper: 198s ...<350 lines>... 198s return "\n".join(self.wrap(text)) 198s File "/usr/lib/python3.13/textwrap.py", line 78, in TextWrapper 198s wordsep_re = re.compile(r''' 198s ( # any whitespace 198s ...<14 lines>... 198s 'ws': whitespace, 'nws': nowhitespace}, 198s re.VERBOSE) 198s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 198s return _compile(pattern, flags) 198s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 198s p = _compiler.compile(pattern, flags) 198s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 198s code = _code(p, flags) 198s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 198s _compile(code, p.data, flags) 198s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 198s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 198s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3.13/re/_compiler.py", line 174, in _compile 198s _compile(code, av, flags) 198s ~~~~~~~~^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3.13/re/_compiler.py", line 174, in _compile 198s _compile(code, av, flags) 198s ~~~~~~~~^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3.13/re/_compiler.py", line 155, in _compile 198s _compile(code, av[1], flags) 198s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3.13/re/_compiler.py", line 86, in _compile 198s charset, hascased = _optimize_charset(av, iscased, tolower, fixes) 198s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3.13/re/_compiler.py", line 342, in _optimize_charset 198s data = _mk_bitmap(charmap) 198s File "/usr/lib/python3.13/re/_compiler.py", line 389, in _mk_bitmap 198s def _mk_bitmap(bits, _CODEBITS=_CODEBITS, _int=int): 198s 198s KeyboardInterrupt 198s __________________ SessionAPITest.test_create_console_session __________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/553a1014-c385-4922-af7f-b006a94fdeb9 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-882fa519-071d-4a0d-bdc5-a681193f2817.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50643 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44841 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 882fa519-071d-4a0d-bdc5-a681193f2817, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.260000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.550000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd1b5a78-a07f-4fa0-92bc-3c08be95e685 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd1b5a78-a07f-4fa0-92bc-3c08be95e685 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/61989c8a-abb8-40a1-8335-d95cb41acd40 (::1) 0.700000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 882fa519-071d-4a0d-bdc5-a681193f2817 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 882fa519-071d-4a0d-bdc5-a681193f2817 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/553a1014-c385-4922-af7f-b006a94fdeb9 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/553a1014-c385-4922-af7f-b006a94fdeb9', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 198s from subprocess import PIPE, Popen 198s File "/usr/lib/python3.13/subprocess.py", line 46, in 198s import locale 198s File "/usr/lib/python3.13/locale.py", line 47, in 198s from _locale import * 198s KeyboardInterrupt 198s ____________________ SessionAPITest.test_create_deprecated _____________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bac2ff05-6e8b-4d0a-948b-0ac8271a37fb 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 198s from glob import _Globber, _no_recurse_symlinks 198s File "/usr/lib/python3.13/glob.py", line 5, in 198s import re 198s File "/usr/lib/python3.13/re/__init__.py", line 381, in 198s import copyreg 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1115, in get_code 198s File "", line 1214, in get_data 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-f9299b72-f4c1-4c42-8b99-9998a4e3570f.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35369 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42595 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: f9299b72-f4c1-4c42-8b99-9998a4e3570f, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.810000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.390000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 882fa519-071d-4a0d-bdc5-a681193f2817 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 882fa519-071d-4a0d-bdc5-a681193f2817 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/553a1014-c385-4922-af7f-b006a94fdeb9 (::1) 0.770000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f9299b72-f4c1-4c42-8b99-9998a4e3570f 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f9299b72-f4c1-4c42-8b99-9998a4e3570f 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bac2ff05-6e8b-4d0a-948b-0ac8271a37fb (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bac2ff05-6e8b-4d0a-948b-0ac8271a37fb', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ___________________ SessionAPITest.test_create_file_session ____________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c1770c5f-6173-4f03-8d73-973e34b6b977 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-7f8a9e78-f389-483b-be28-2f6b0ab49f9b.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48701 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55603 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7f8a9e78-f389-483b-be28-2f6b0ab49f9b, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 22.950000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.830000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f9299b72-f4c1-4c42-8b99-9998a4e3570f 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f9299b72-f4c1-4c42-8b99-9998a4e3570f 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bac2ff05-6e8b-4d0a-948b-0ac8271a37fb (::1) 0.730000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f8a9e78-f389-483b-be28-2f6b0ab49f9b 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f8a9e78-f389-483b-be28-2f6b0ab49f9b 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c1770c5f-6173-4f03-8d73-973e34b6b977 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c1770c5f-6173-4f03-8d73-973e34b6b977', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c1770c5f-6173-4f03-8d73-973e34b6b977 (::1) 6.030000ms referer=None 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 198s from glob import _Globber, _no_recurse_symlinks 198s File "/usr/lib/python3.13/glob.py", line 5, in 198s import re 198s File "/usr/lib/python3.13/re/__init__.py", line 126, in 198s from . import _compiler, _parser 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1152, in get_code 198s File "", line 781, in _compile_bytecode 198s KeyboardInterrupt 198s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 198s 198s self = 198s 198s def test_create_with_kernel_id(self): 198s # create a new kernel 198s r = self.request('POST', 'api/kernels') 198s r.raise_for_status() 198s kernel = r.json() 198s 198s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 198s self.assertEqual(resp.status_code, 201) 198s newsession = resp.json() 198s self.assertIn('id', newsession) 198s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 198s self.assertEqual(newsession['kernel']['id'], kernel['id']) 198s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 198s 198s sessions = self.sess_api.list().json() 198s > self.assertEqual(sessions, [newsession]) 198s E AssertionError: Lists differ: [{'id': 'c1770c5f-6173-4f03-8d73-973e34b6b977', 'p[553 chars]ne}}] != [{'id': '04a2467a-226e-4d81-b891-14a0d870d02b', 'p[279 chars]ne}}] 198s E 198s E First differing element 0: 198s E {'id': 'c1770c5f-6173-4f03-8d73-973e34b6b977', 'p[218 chars]: 0}} 198s E {'id': '04a2467a-226e-4d81-b891-14a0d870d02b', 'p[278 chars]one}} 198s E 198s E First list contains 1 additional elements. 198s E First extra element 1: 198s E {'id': '04a2467a-226e-4d81-b891-14a0d870d02b', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'fb45223b-cca3-4d19-9c72-b4719488b79b', 'name': 'python3', 'last_activity': '2026-02-02T09:03:40.873546Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 198s E 198s E Diff is 830 characters long. Set self.maxDiff to None to see it. 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-fb45223b-cca3-4d19-9c72-b4719488b79b.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42473 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59427 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: fb45223b-cca3-4d19-9c72-b4719488b79b, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 46.970000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.880000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.680000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f8a9e78-f389-483b-be28-2f6b0ab49f9b 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f8a9e78-f389-483b-be28-2f6b0ab49f9b 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c1770c5f-6173-4f03-8d73-973e34b6b977 (::1) 2.150000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fb45223b-cca3-4d19-9c72-b4719488b79b 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fb45223b-cca3-4d19-9c72-b4719488b79b 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/04a2467a-226e-4d81-b891-14a0d870d02b (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/04a2467a-226e-4d81-b891-14a0d870d02b', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 198s 198s self = 198s 198s def test_modify_kernel_id(self): 198s before = self.sess_api.create('foo/nb1.ipynb').json() 198s sid = before['id'] 198s 198s # create a new kernel 198s r = self.request('POST', 'api/kernels') 198s r.raise_for_status() 198s kernel = r.json() 198s 198s # Attach our session to the existing kernel 198s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 198s return self._req('PATCH', id, body) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 9, in 198s from .manager import AsyncKernelManager, KernelManager, run_kernel 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 36, in 198s from . import kernelspec 198s File "/usr/lib/python3/dist-packages/jupyter_client/kernelspec.py", line 18, in 198s from .provisioning import KernelProvisionerFactory as KPF # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/provisioning/__init__.py", line 1, in 198s from .factory import KernelProvisionerFactory # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/provisioning/factory.py", line 8, in 198s from importlib.metadata import EntryPoint, entry_points 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1152, in get_code 198s File "", line 781, in _compile_bytecode 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47335 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42371 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 58.750000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-a91af3ca-bbdf-48cb-af9a-a58cc2ab855e.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41303 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54197 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: a91af3ca-bbdf-48cb-af9a-a58cc2ab855e, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.550000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 198s km.shutdown_kernel(before['kernel']['id']) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 7.030000ms referer=None 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.780000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a91af3ca-bbdf-48cb-af9a-a58cc2ab855e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a91af3ca-bbdf-48cb-af9a-a58cc2ab855e 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 5.860000ms referer=None 198s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 198s 198s self = 198s 198s def test_modify_kernel_name(self): 198s before = self.sess_api.create('foo/nb1.ipynb').json() 198s sid = before['id'] 198s 198s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 198s self.assertEqual(after['id'], sid) 198s self.assertEqual(after['path'], before['path']) 198s self.assertEqual(after['type'], before['type']) 198s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 198s 198s # check kernel list, to be sure previous kernel was cleaned up 198s r = self.request('GET', 'api/kernels') 198s r.raise_for_status() 198s kernel_list = r.json() 198s after['kernel'].pop('last_activity') 198s [ k.pop('last_activity') for k in kernel_list ] 198s > self.assertEqual(kernel_list, [after['kernel']]) 198s E AssertionError: Lists differ: [{'id': '7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad', 'n[177 chars]: 0}] != [{'id': '3e433491-fa7d-411b-b3ba-d86be0558022', 'n[61 chars]: 0}] 198s E 198s E First differing element 0: 198s E {'id': '7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad', 'n[60 chars]': 0} 198s E {'id': '3e433491-fa7d-411b-b3ba-d86be0558022', 'n[60 chars]': 0} 198s E 198s E First list contains 1 additional elements. 198s E First extra element 1: 198s E {'id': '3e433491-fa7d-411b-b3ba-d86be0558022', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 198s E 198s E [{'connections': 0, 198s E - 'execution_state': 'starting', 198s E - 'id': '7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad', 198s E - 'name': 'python3'}, 198s E - {'connections': 0, 198s E 'execution_state': 'starting', 198s E 'id': '3e433491-fa7d-411b-b3ba-d86be0558022', 198s E 'name': 'python3'}] 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 198s from .asynchronous import AsyncKernelClient 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 198s from .client import AsyncKernelClient # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 198s import zmq.asyncio 198s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 198s import asyncio 198s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 198s from .base_events import * 198s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 198s from . import coroutines 198s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 198s import inspect 198s File "/usr/lib/python3.13/inspect.py", line 145, in 198s import ast 198s File "/usr/lib/python3.13/ast.py", line 739, in 198s class _Unparser(NodeVisitor): 198s ...<1073 lines>... 198s self.interleave(lambda: self.write(" | "), self.traverse, node.patterns) 198s File "/usr/lib/python3.13/ast.py", line 1514, in _Unparser 198s binop_rassoc = frozenset(("**",)) 198s KeyboardInterrupt 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-3e433491-fa7d-411b-b3ba-d86be0558022.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32771 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51535 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3e433491-fa7d-411b-b3ba-d86be0558022, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a91af3ca-bbdf-48cb-af9a-a58cc2ab855e 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a91af3ca-bbdf-48cb-af9a-a58cc2ab855e 198s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 13.840000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3e433491-fa7d-411b-b3ba-d86be0558022 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3e433491-fa7d-411b-b3ba-d86be0558022 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7335b057-eb0d-46a6-90fd-d78f750d43b4 (::1) 5.300000ms referer=None 198s __________________ SessionAPITest.test_modify_path_deprecated __________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/04820850-f007-4b9d-a153-579ac3dc7e45 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-299ab2f6-6608-44b0-b42f-5b0e8de9042d.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48739 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45235 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 299ab2f6-6608-44b0-b42f-5b0e8de9042d, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.030000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 198s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/04820850-f007-4b9d-a153-579ac3dc7e45 (::1) 1.500000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.530000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 299ab2f6-6608-44b0-b42f-5b0e8de9042d 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 299ab2f6-6608-44b0-b42f-5b0e8de9042d 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/04820850-f007-4b9d-a153-579ac3dc7e45 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/04820850-f007-4b9d-a153-579ac3dc7e45', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 198s from ._local import * 198s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 198s class PureWindowsPath(PurePath): 198s ...<7 lines>... 198s __slots__ = () 198s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 198s import ntpath 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 935, in _load_unlocked 198s File "", line 1019, in exec_module 198s File "", line 1152, in get_code 198s File "", line 781, in _compile_bytecode 198s KeyboardInterrupt 198s _______________________ SessionAPITest.test_modify_type ________________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/730ca687-b933-4b74-b28c-3c55a367b122 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr2g4t48h/runtime/kernel-28f0bcc3-6c3a-4541-bbba-fe5f8acc5e50.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45893 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55015 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 28f0bcc3-6c3a-4541-bbba-fe5f8acc5e50, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr2g4t48h/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.530000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/730ca687-b933-4b74-b28c-3c55a367b122 (::1) 1.420000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.230000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 299ab2f6-6608-44b0-b42f-5b0e8de9042d 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 299ab2f6-6608-44b0-b42f-5b0e8de9042d 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/04820850-f007-4b9d-a153-579ac3dc7e45 (::1) 1.580000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 28f0bcc3-6c3a-4541-bbba-fe5f8acc5e50 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 28f0bcc3-6c3a-4541-bbba-fe5f8acc5e50 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/730ca687-b933-4b74-b28c-3c55a367b122 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/730ca687-b933-4b74-b28c-3c55a367b122', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 198s yielded = self.gen.send(value) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 198s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 198s stopper = ensure_async(km.shutdown_kernel(now, restart)) 198s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 198s return _runner_map[name].run(inner) 198s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 198s return fut.result(None) 198s ~~~~~~~~~~^^^^^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 198s return self.__get_result() 198s ~~~~~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 198s raise self._exception 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 403, in 198s class PathBase(PurePathBase): 198s ...<526 lines>... 198s raise UnsupportedOperation(self._unsupported_msg('as_uri()')) 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 923, in PathBase 198s @classmethod 198s ^^^^^^^^^^^ 198s KeyboardInterrupt 198s ---------------------------- Captured log teardown ----------------------------- 198s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7619dcb3-fff2-4e7d-bd5f-ae4e53bb66ad 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 28f0bcc3-6c3a-4541-bbba-fe5f8acc5e50 198s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 198s _______________________ AsyncSessionAPITest.test_create ________________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9ab7083a-52bd-4823-82db-43c5624f466c 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ------------------------------ Captured log setup ------------------------------ 198s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpurr1h7wo/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpurr1h7wo/etc/jupyter'] for config files 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpurr1h7wo/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpurr1h7wo/config 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpurr1h7wo/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 198s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpurr1h7wo/config 198s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpurr1h7wo/notebooks 198s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 198s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 198s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 198s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 198s WARNING NotebookApp:handlers.py:612 Forbidden 198s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.570000ms referer=None 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-03a6e040-ef7a-4e00-a3e6-6a236024123a.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60769 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51775 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 03a6e040-ef7a-4e00-a3e6-6a236024123a, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.470000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/9ab7083a-52bd-4823-82db-43c5624f466c (::1) 0.470000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 03a6e040-ef7a-4e00-a3e6-6a236024123a 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03a6e040-ef7a-4e00-a3e6-6a236024123a 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9ab7083a-52bd-4823-82db-43c5624f466c (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9ab7083a-52bd-4823-82db-43c5624f466c', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9ab7083a-52bd-4823-82db-43c5624f466c (::1) 6.840000ms referer=None 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 198s import json 198s File "/usr/lib/python3.13/json/__init__.py", line 106, in 198s from .decoder import JSONDecoder, JSONDecodeError 198s File "/usr/lib/python3.13/json/decoder.py", line 53, in 198s HEXDIGITS = re.compile(r'[0-9A-Fa-f]{4}', FLAGS) 198s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 198s return _compile(pattern, flags) 198s File "/usr/lib/python3.13/re/__init__.py", line 351, in _compile 198s if flags & DEBUG: 198s ~~~~~~^~~~~~~ 198s File "/usr/lib/python3.13/enum.py", line 1607, in __and__ 198s def __and__(self, other): 198s 198s KeyboardInterrupt 198s _______________ AsyncSessionAPITest.test_create_console_session ________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/49e9b89b-ce5e-42bb-b975-a68657699c51 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-ff25a3f8-3c0f-4d7d-80a4-ea4290ea9cec.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36139 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39761 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: ff25a3f8-3c0f-4d7d-80a4-ea4290ea9cec, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.690000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 03a6e040-ef7a-4e00-a3e6-6a236024123a 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03a6e040-ef7a-4e00-a3e6-6a236024123a 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9ab7083a-52bd-4823-82db-43c5624f466c (::1) 0.670000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff25a3f8-3c0f-4d7d-80a4-ea4290ea9cec 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff25a3f8-3c0f-4d7d-80a4-ea4290ea9cec 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/49e9b89b-ce5e-42bb-b975-a68657699c51 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/49e9b89b-ce5e-42bb-b975-a68657699c51', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s --------------------------- Captured stderr teardown --------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 198s from glob import _Globber, _no_recurse_symlinks 198s File "/usr/lib/python3.13/glob.py", line 5, in 198s import re 198s File "/usr/lib/python3.13/re/__init__.py", line 126, in 198s from . import _compiler, _parser 198s File "/usr/lib/python3.13/re/_compiler.py", line 13, in 198s import _sre 198s File "", line 1357, in _find_and_load 198s File "", line 416, in __enter__ 198s KeyboardInterrupt 198s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/26f7d71a-ca13-4ed6-b419-ba361a2dc4ff 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-47e14158-bacf-4487-8d73-085e87e2d6f4.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50481 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36483 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 47e14158-bacf-4487-8d73-085e87e2d6f4, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.380000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.410000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff25a3f8-3c0f-4d7d-80a4-ea4290ea9cec 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff25a3f8-3c0f-4d7d-80a4-ea4290ea9cec 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/49e9b89b-ce5e-42bb-b975-a68657699c51 (::1) 1.370000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 47e14158-bacf-4487-8d73-085e87e2d6f4 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 47e14158-bacf-4487-8d73-085e87e2d6f4 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/26f7d71a-ca13-4ed6-b419-ba361a2dc4ff (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/26f7d71a-ca13-4ed6-b419-ba361a2dc4ff', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/26f7d71a-ca13-4ed6-b419-ba361a2dc4ff (::1) 4.940000ms referer=None 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 198s from ._abc import * 198s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 198s from glob import _Globber, _no_recurse_symlinks 198s File "/usr/lib/python3.13/glob.py", line 5, in 198s import re 198s File "/usr/lib/python3.13/re/__init__.py", line 126, in 198s from . import _compiler, _parser 198s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 198s from . import _parser 198s File "", line 1360, in _find_and_load 198s File "", line 1331, in _find_and_load_unlocked 198s File "", line 946, in _load_unlocked 198s KeyboardInterrupt 198s _________________ AsyncSessionAPITest.test_create_file_session _________________ 198s 198s @self.addCleanup 198s def cleanup_sessions(): 198s for session in self.sess_api.list().json(): 198s > self.sess_api.delete(session['id']) 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 198s return self._req('DELETE', id) 198s ^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3a265557-679d-4b03-81db-ec5887194c83 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-822b9f98-147e-4ef5-a576-b917fd48ee44.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35487 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34741 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: 822b9f98-147e-4ef5-a576-b917fd48ee44, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.860000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.380000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 47e14158-bacf-4487-8d73-085e87e2d6f4 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 47e14158-bacf-4487-8d73-085e87e2d6f4 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/26f7d71a-ca13-4ed6-b419-ba361a2dc4ff (::1) 1.400000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 822b9f98-147e-4ef5-a576-b917fd48ee44 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 822b9f98-147e-4ef5-a576-b917fd48ee44 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3a265557-679d-4b03-81db-ec5887194c83 (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3a265557-679d-4b03-81db-ec5887194c83', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3a265557-679d-4b03-81db-ec5887194c83 (::1) 5.410000ms referer=None 198s --------------------------- Captured stderr teardown --------------------------- 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 198s from pathlib import Path 198s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 198s from ._local import * 198s File "", line 1360, in _find_and_load 198s File "", line 1304, in _find_and_load_unlocked 198s KeyboardInterrupt 198s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 198s 198s self = 198s 198s def test_create_with_kernel_id(self): 198s # create a new kernel 198s r = self.request('POST', 'api/kernels') 198s r.raise_for_status() 198s kernel = r.json() 198s 198s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 198s self.assertEqual(resp.status_code, 201) 198s newsession = resp.json() 198s self.assertIn('id', newsession) 198s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 198s self.assertEqual(newsession['kernel']['id'], kernel['id']) 198s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 198s 198s sessions = self.sess_api.list().json() 198s > self.assertEqual(sessions, [newsession]) 198s E AssertionError: Lists differ: [{'id': '3a265557-679d-4b03-81db-ec5887194c83', 'p[553 chars]ne}}] != [{'id': '0160cea3-b86a-4269-8355-549e7fc7299f', 'p[279 chars]ne}}] 198s E 198s E First differing element 0: 198s E {'id': '3a265557-679d-4b03-81db-ec5887194c83', 'p[218 chars]: 0}} 198s E {'id': '0160cea3-b86a-4269-8355-549e7fc7299f', 'p[278 chars]one}} 198s E 198s E First list contains 1 additional elements. 198s E First extra element 1: 198s E {'id': '0160cea3-b86a-4269-8355-549e7fc7299f', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'a0d44c7a-23de-462e-b938-ac5c360a37f8', 'name': 'python3', 'last_activity': '2026-02-02T09:03:42.612620Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 198s E 198s E Diff is 830 characters long. Set self.maxDiff to None to see it. 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 198s ------------------------------ Captured log call ------------------------------- 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 198s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-a0d44c7a-23de-462e-b938-ac5c360a37f8.json'] 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50041 198s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40923 198s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0d44c7a-23de-462e-b938-ac5c360a37f8, name: python3 198s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 49.710000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 116.030000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 55.660000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 822b9f98-147e-4ef5-a576-b917fd48ee44 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 822b9f98-147e-4ef5-a576-b917fd48ee44 198s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3a265557-679d-4b03-81db-ec5887194c83 (::1) 0.750000ms 198s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 198s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0d44c7a-23de-462e-b938-ac5c360a37f8 198s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0d44c7a-23de-462e-b938-ac5c360a37f8 198s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0160cea3-b86a-4269-8355-549e7fc7299f (::1) 198s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0160cea3-b86a-4269-8355-549e7fc7299f', version='HTTP/1.1', remote_ip='::1') 198s Traceback (most recent call last): 198s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 198s result = await result 198s ^^^^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 198s future.result() 198s ~~~~~~~~~~~~~^^ 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 198s yield maybe_future(sm.delete_session(session_id)) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 198s yielded = self.gen.throw(exc) 198s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 198s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 198s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 198s value = future.result() 198s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 198s raise self._exception.with_traceback(self._exception_tb) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 198s result = coro.send(None) 198s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 198s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 198s raise km.ready.exception() # type: ignore[misc] 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 198s await kernel_awaitable 198s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 198s result = await obj 198s ^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 198s raise e 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 198s out = await method(self, *args, **kwargs) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 198s await self._async_finish_shutdown(restart=restart) 198s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 198s await asyncio.wait_for( 198s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 198s ) 198s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 198s async with timeouts.timeout(timeout): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^ 198s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 198s raise RuntimeError("Timeout should be used inside a task") 198s RuntimeError: Timeout should be used inside a task 198s WARNING NotebookApp:handlers.py:612 Unhandled error 198s ERROR NotebookApp:log.py:55 { 198s "Host": "localhost:12341", 198s "Accept": "*/*", 198s "User-Agent": "python-requests/2.32.5" 198s } 198s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0160cea3-b86a-4269-8355-549e7fc7299f (::1) 5.870000ms referer=None 198s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 198s 198s self = 198s 198s def test_modify_kernel_id(self): 198s before = self.sess_api.create('foo/nb1.ipynb').json() 198s sid = before['id'] 198s 198s # create a new kernel 198s r = self.request('POST', 'api/kernels') 198s r.raise_for_status() 198s kernel = r.json() 198s 198s # Attach our session to the existing kernel 198s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 198s return self._req('PATCH', id, body) 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 198s response.raise_for_status() 198s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 198s 198s self = 198s 198s def raise_for_status(self): 198s """Raises :class:`HTTPError`, if one occurred.""" 198s 198s http_error_msg = "" 198s if isinstance(self.reason, bytes): 198s # We attempt to decode utf-8 first because some servers 198s # choose to localize their reason strings. If the string 198s # isn't utf-8, we fall back to iso-8859-1 for all other 198s # encodings. (See PR #3538) 198s try: 198s reason = self.reason.decode("utf-8") 198s except UnicodeDecodeError: 198s reason = self.reason.decode("iso-8859-1") 198s else: 198s reason = self.reason 198s 198s if 400 <= self.status_code < 500: 198s http_error_msg = ( 198s f"{self.status_code} Client Error: {reason} for url: {self.url}" 198s ) 198s 198s elif 500 <= self.status_code < 600: 198s http_error_msg = ( 198s f"{self.status_code} Server Error: {reason} for url: {self.url}" 198s ) 198s 198s if http_error_msg: 198s > raise HTTPError(http_error_msg, response=self) 198s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 198s 198s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 198s ----------------------------- Captured stderr call ----------------------------- 198s Traceback (most recent call last): 198s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 198s return _run_code(code, main_globals, None, 198s "__main__", mod_spec) 198s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 198s exec(code, run_globals) 198s ~~~~^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 198s from ipykernel import kernelapp as app 198s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 198s from .connect import * # noqa: F403 198s ^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 198s import jupyter_client 198s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 198s from .asynchronous import AsyncKernelClient 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 198s from .client import AsyncKernelClient # noqa 198s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 198s import zmq.asyncio 198s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 198s from zmq import sugar 198s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 198s from zmq.sugar import context, frame, poll, socket, tracker, version 198s File "/usr/lib/python3/dist-packages/zmq/sugar/tracker.py", line 15, in 198s class MessageTracker: 198s ...<95 lines>... 198s tic = toc 198s KeyboardInterrupt 198s ------------------------------ Captured log call ------------------------------- 199s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 199s gc.collect() 199s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-6611a680-f929-4386-9704-432a20fa0a32.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45197 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60137 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6611a680-f929-4386-9704-432a20fa0a32, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.990000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-75cd9d03-c1e0-4ae5-a57c-29376c5f7f07.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47321 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44901 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.370000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6611a680-f929-4386-9704-432a20fa0a32 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6611a680-f929-4386-9704-432a20fa0a32 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 199s yield maybe_future( 199s km.shutdown_kernel(before['kernel']['id']) 199s ) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 5.500000ms referer=None 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s ERROR NotebookApp:log.py:55 { 199s "Host": "localhost:12341", 199s "Accept": "*/*", 199s "User-Agent": "python-requests/2.32.5" 199s } 199s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 5.810000ms referer=None 199s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 199s 199s self = 199s 199s def test_modify_kernel_name(self): 199s before = self.sess_api.create('foo/nb1.ipynb').json() 199s sid = before['id'] 199s 199s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 199s self.assertEqual(after['id'], sid) 199s self.assertEqual(after['path'], before['path']) 199s self.assertEqual(after['type'], before['type']) 199s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 199s 199s # check kernel list, to be sure previous kernel was cleaned up 199s r = self.request('GET', 'api/kernels') 199s r.raise_for_status() 199s kernel_list = r.json() 199s after['kernel'].pop('last_activity') 199s [ k.pop('last_activity') for k in kernel_list ] 199s > self.assertEqual(kernel_list, [after['kernel']]) 199s E AssertionError: Lists differ: [{'id': '6611a680-f929-4386-9704-432a20fa0a32', 'n[177 chars]: 0}] != [{'id': 'd499a77a-9b80-41c5-99f0-7f6c1c30d78b', 'n[61 chars]: 0}] 199s E 199s E First differing element 0: 199s E {'id': '6611a680-f929-4386-9704-432a20fa0a32', 'n[60 chars]': 0} 199s E {'id': 'd499a77a-9b80-41c5-99f0-7f6c1c30d78b', 'n[60 chars]': 0} 199s E 199s E First list contains 1 additional elements. 199s E First extra element 1: 199s E {'id': 'd499a77a-9b80-41c5-99f0-7f6c1c30d78b', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 199s E 199s E [{'connections': 0, 199s E - 'execution_state': 'starting', 199s E - 'id': '6611a680-f929-4386-9704-432a20fa0a32', 199s E - 'name': 'python3'}, 199s E - {'connections': 0, 199s E 'execution_state': 'starting', 199s E 'id': 'd499a77a-9b80-41c5-99f0-7f6c1c30d78b', 199s E 'name': 'python3'}] 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 199s ---------------------------- Captured stderr setup ----------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 199s from ipykernel import kernelapp as app 199s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 199s from .connect import * # noqa: F403 199s ^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 199s from typing import TYPE_CHECKING, Any 199s File "", line 1360, in _find_and_load 199s File "", line 1331, in _find_and_load_unlocked 199s File "", line 935, in _load_unlocked 199s File "", line 1019, in exec_module 199s File "", line 1152, in get_code 199s File "", line 781, in _compile_bytecode 199s KeyboardInterrupt 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.670000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-d499a77a-9b80-41c5-99f0-7f6c1c30d78b.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38997 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42797 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: d499a77a-9b80-41c5-99f0-7f6c1c30d78b, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07 199s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 13.660000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.250000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.490000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d499a77a-9b80-41c5-99f0-7f6c1c30d78b 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d499a77a-9b80-41c5-99f0-7f6c1c30d78b 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bb29d1c7-c10b-43ef-9525-d6a21cbabab9', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a694b5c5-f65e-4636-98e5-88c16839d209 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-31b0c24c-962a-4812-a7b8-1be122d958c8.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52367 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52943 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 31b0c24c-962a-4812-a7b8-1be122d958c8, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.760000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 199s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a694b5c5-f65e-4636-98e5-88c16839d209 (::1) 0.640000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.250000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31b0c24c-962a-4812-a7b8-1be122d958c8 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31b0c24c-962a-4812-a7b8-1be122d958c8 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a694b5c5-f65e-4636-98e5-88c16839d209 (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a694b5c5-f65e-4636-98e5-88c16839d209', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 126, in 199s from . import _compiler, _parser 199s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 199s from . import _parser 199s File "/usr/lib/python3.13/re/_parser.py", line 74, in 199s class State: 199s ...<33 lines>... 199s 'lookbehind subpattern') 199s KeyboardInterrupt 199s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 199s 199s @self.addCleanup 199s def cleanup_sessions(): 199s for session in self.sess_api.list().json(): 199s > self.sess_api.delete(session['id']) 199s 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 199s return self._req('DELETE', id) 199s ^^^^^^^^^^^^^^^^^^^^^^^ 199s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 199s response.raise_for_status() 199s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 199s 199s self = 199s 199s def raise_for_status(self): 199s """Raises :class:`HTTPError`, if one occurred.""" 199s 199s http_error_msg = "" 199s if isinstance(self.reason, bytes): 199s # We attempt to decode utf-8 first because some servers 199s # choose to localize their reason strings. If the string 199s # isn't utf-8, we fall back to iso-8859-1 for all other 199s # encodings. (See PR #3538) 199s try: 199s reason = self.reason.decode("utf-8") 199s except UnicodeDecodeError: 199s reason = self.reason.decode("iso-8859-1") 199s else: 199s reason = self.reason 199s 199s if 400 <= self.status_code < 500: 199s http_error_msg = ( 199s f"{self.status_code} Client Error: {reason} for url: {self.url}" 199s ) 199s 199s elif 500 <= self.status_code < 600: 199s http_error_msg = ( 199s f"{self.status_code} Server Error: {reason} for url: {self.url}" 199s ) 199s 199s if http_error_msg: 199s > raise HTTPError(http_error_msg, response=self) 199s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2954af62-9b92-4f56-b414-3ac1d6e6fb7a 199s 199s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 199s ------------------------------ Captured log call ------------------------------- 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 199s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpurr1h7wo/runtime/kernel-5c3bb8ef-0c8a-40de-8b1c-779e53c40429.json'] 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45185 199s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42905 199s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c3bb8ef-0c8a-40de-8b1c-779e53c40429, name: python3 199s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpurr1h7wo/notebooks/foo'} 199s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.290000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/2954af62-9b92-4f56-b414-3ac1d6e6fb7a (::1) 1.410000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.270000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31b0c24c-962a-4812-a7b8-1be122d958c8 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31b0c24c-962a-4812-a7b8-1be122d958c8 199s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a694b5c5-f65e-4636-98e5-88c16839d209 (::1) 0.520000ms 199s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 199s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c3bb8ef-0c8a-40de-8b1c-779e53c40429 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c3bb8ef-0c8a-40de-8b1c-779e53c40429 199s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2954af62-9b92-4f56-b414-3ac1d6e6fb7a (::1) 199s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2954af62-9b92-4f56-b414-3ac1d6e6fb7a', version='HTTP/1.1', remote_ip='::1') 199s Traceback (most recent call last): 199s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 199s result = await result 199s ^^^^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 199s future.result() 199s ~~~~~~~~~~~~~^^ 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 199s yield maybe_future(sm.delete_session(session_id)) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 199s yielded = self.gen.throw(exc) 199s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 199s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 199s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 199s value = future.result() 199s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 199s raise self._exception.with_traceback(self._exception_tb) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 199s result = coro.send(None) 199s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 199s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 199s raise km.ready.exception() # type: ignore[misc] 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 199s await kernel_awaitable 199s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 199s result = await obj 199s ^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 199s raise e 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 199s out = await method(self, *args, **kwargs) 199s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 199s await self._async_finish_shutdown(restart=restart) 199s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 199s await asyncio.wait_for( 199s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 199s ) 199s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 199s async with timeouts.timeout(timeout): 199s ~~~~~~~~~~~~~~~~^^^^^^^^^ 199s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 199s raise RuntimeError("Timeout should be used inside a task") 199s RuntimeError: Timeout should be used inside a task 199s WARNING NotebookApp:handlers.py:612 Unhandled error 199s --------------------------- Captured stderr teardown --------------------------- 199s Traceback (most recent call last): 199s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 199s return _run_code(code, main_globals, None, 199s "__main__", mod_spec) 199s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 199s exec(code, run_globals) 199s ~~~~^^^^^^^^^^^^^^^^^^^ 199s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 199s from pathlib import Path 199s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 199s from ._abc import * 199s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 199s from glob import _Globber, _no_recurse_symlinks 199s File "/usr/lib/python3.13/glob.py", line 5, in 199s import re 199s File "/usr/lib/python3.13/re/__init__.py", line 125, in 199s import enum 199s File "", line 1360, in _find_and_load 199s File "", line 1331, in _find_and_load_unlocked 199s File "", line 935, in _load_unlocked 199s File "", line 1019, in exec_module 199s File "", line 1115, in get_code 199s File "", line 1215, in get_data 199s KeyboardInterrupt 199s ---------------------------- Captured log teardown ----------------------------- 199s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 47e14158-bacf-4487-8d73-085e87e2d6f4 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 822b9f98-147e-4ef5-a576-b917fd48ee44 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 03a6e040-ef7a-4e00-a3e6-6a236024123a 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff25a3f8-3c0f-4d7d-80a4-ea4290ea9cec 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d499a77a-9b80-41c5-99f0-7f6c1c30d78b 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 75cd9d03-c1e0-4ae5-a57c-29376c5f7f07 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31b0c24c-962a-4812-a7b8-1be122d958c8 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0d44c7a-23de-462e-b938-ac5c360a37f8 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c3bb8ef-0c8a-40de-8b1c-779e53c40429 199s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6611a680-f929-4386-9704-432a20fa0a32 199s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 199s =============================== warnings summary =============================== 199s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 199s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 199s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 199s return LooseVersion(v) >= LooseVersion(check) 199s 199s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 199s auth/tests/test_login.py: 2 warnings 199s bundler/tests/test_bundler_api.py: 2 warnings 199s services/api/tests/test_api.py: 4 warnings 199s services/config/tests/test_config_api.py: 7 warnings 199s services/contents/tests/test_contents_api.py: 318 warnings 199s services/kernels/tests/test_kernels_api.py: 108 warnings 199s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 199s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 199s services/sessions/tests/test_sessionmanager.py: 9 warnings 199s services/sessions/tests/test_sessions_api.py: 128 warnings 199s terminal/tests/test_terminals_api.py: 50 warnings 199s tests/test_files.py: 2 warnings 199s tests/test_gateway.py: 21 warnings 199s tests/test_notebookapp.py: 8 warnings 199s tests/test_paths.py: 2 warnings 199s tree/tests/test_tree_handler.py: 2 warnings 199s /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). 199s dt = unaware(*args, **kwargs) 199s 199s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 199s /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 199s pytestmark = pytest.mark.integration_tests 199s 199s auth/tests/test_login.py: 3 warnings 199s bundler/tests/test_bundler_api.py: 3 warnings 199s services/api/tests/test_api.py: 3 warnings 199s services/config/tests/test_config_api.py: 3 warnings 199s services/contents/tests/test_contents_api.py: 6 warnings 199s services/kernels/tests/test_kernels_api.py: 12 warnings 199s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 199s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 199s services/sessions/tests/test_sessions_api.py: 6 warnings 199s terminal/tests/test_terminals_api.py: 6 warnings 199s tests/test_files.py: 3 warnings 199s tests/test_gateway.py: 3 warnings 199s tests/test_notebookapp.py: 11 warnings 199s tests/test_paths.py: 3 warnings 199s tree/tests/test_tree_handler.py: 3 warnings 199s /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 199s policy = events.get_event_loop_policy() 199s 199s auth/tests/test_login.py: 9 warnings 199s bundler/tests/test_bundler_api.py: 9 warnings 199s services/api/tests/test_api.py: 9 warnings 199s services/config/tests/test_config_api.py: 9 warnings 199s services/contents/tests/test_contents_api.py: 18 warnings 199s services/kernels/tests/test_kernels_api.py: 47 warnings 199s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 199s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 199s services/sessions/tests/test_sessionmanager.py: 18 warnings 199s services/sessions/tests/test_sessions_api.py: 19 warnings 199s terminal/tests/test_terminals_api.py: 18 warnings 199s tests/test_files.py: 9 warnings 199s tests/test_gateway.py: 9 warnings 199s tests/test_notebookapp.py: 28 warnings 199s tests/test_paths.py: 9 warnings 199s tree/tests/test_tree_handler.py: 9 warnings 199s /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 199s loop = events.get_event_loop_policy().get_event_loop() 199s 199s bundler/tests/test_bundler_api.py: 6 warnings 199s services/api/tests/test_api.py: 6 warnings 199s services/contents/tests/test_contents_api.py: 806 warnings 199s services/contents/tests/test_largefilemanager.py: 42 warnings 199s services/contents/tests/test_manager.py: 526 warnings 199s tests/test_files.py: 8 warnings 199s tree/tests/test_tree_handler.py: 6 warnings 199s /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). 199s dt = unaware(*args, **kwargs) 199s 199s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 199s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 199s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 199s loop.make_current() 199s 199s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 199s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 199s /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/tmpg5y_11ui/data/kernels/sample 2 199s d = self.find_kernel_specs() 199s 199s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 199s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 199s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 199s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 199s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 199s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 199s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 199s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 199s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=3321) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 199s pid, fd = os.forkpty() 199s 199s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 199s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 199s /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). 199s dt = datetime.utcnow().isoformat() + 'Z' 199s 199s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 199s =========================== short test summary info ============================ 199s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 199s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 199s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 199s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 199s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 199s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 199s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 199s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 199s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 199s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 199s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 199s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 199s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 199s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 199s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 199s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 199s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 199s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 199s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 199s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 199s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 199s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 199s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 199s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 199s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 199s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 199s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 199s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 199s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 199s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2400 warnings, 8 errors in 48.32s = 200s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 200s *** 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 209s ============================= test session starts ============================== 209s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 209s rootdir: /tmp/autopkgtest.g7xfi7/autopkgtest_tmp 209s plugins: typeguard-4.4.4 209s collected 330 items / 303 deselected / 27 selected 209s run-last-failure: rerun previous 27 failures 209s 220s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 220s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 220s 220s ==================================== ERRORS ==================================== 220s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 220s 220s self = 220s 220s def tearDown(self): 220s for k in self.kern_api.list().json(): 220s > self.kern_api.shutdown(k['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/aea94fb0-4dc5-42fc-859d-b71c8116996b 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 220s import functools 220s File "/usr/lib/python3.13/functools.py", line 18, in 220s from collections import namedtuple 220s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 220s from reprlib import recursive_repr as _recursive_repr 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 935, in _load_unlocked 220s File "", line 1019, in exec_module 220s File "", line 1152, in get_code 220s File "", line 781, in _compile_bytecode 220s KeyboardInterrupt 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 220s from ipykernel import kernelapp as app 220s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 220s from .connect import * # noqa: F403 220s ^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 220s import jupyter_client 220s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 220s from .asynchronous import AsyncKernelClient 220s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 220s from .client import AsyncKernelClient # noqa 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 12, in 220s from ..channels import AsyncZMQSocketChannel, HBChannel 220s File "/usr/lib/python3/dist-packages/jupyter_client/channels.py", line 17, in 220s from .session import Session 220s File "/usr/lib/python3/dist-packages/jupyter_client/session.py", line 54, in 220s from .jsonutil import extract_dates, json_clean, json_default, squash_dates 220s File "/usr/lib/python3/dist-packages/jupyter_client/jsonutil.py", line 15, in 220s from dateutil.parser import isoparse as _dateutil_parse 220s File "", line 1360, in _find_and_load 220s File "", line 1322, in _find_and_load_unlocked 220s File "", line 1262, in _find_spec 220s File "", line 1556, in find_spec 220s File "", line 1528, in _get_spec 220s File "", line 1497, in _path_importer_cache 220s KeyboardInterrupt 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3ehmmuls/runtime/kernel-aea94fb0-4dc5-42fc-859d-b71c8116996b.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36217 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35265 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: aea94fb0-4dc5-42fc-859d-b71c8116996b, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 38.110000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3ehmmuls/runtime/kernel-f744e3bd-87cc-4922-8a5c-7ca5f709e274.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56975 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57115 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: f744e3bd-87cc-4922-8a5c-7ca5f709e274, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 72.460000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.330000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: f744e3bd-87cc-4922-8a5c-7ca5f709e274 220s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/f744e3bd-87cc-4922-8a5c-7ca5f709e274/interrupt (::1) 1.040000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 220s yield maybe_future(km.restart_kernel(kernel_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 220s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 220s await ensure_async(kernel.restart_kernel(now=now)) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 220s await self._async_shutdown_kernel(now=now, restart=True) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/f744e3bd-87cc-4922-8a5c-7ca5f709e274/restart (::1) 137.190000ms referer=None 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aea94fb0-4dc5-42fc-859d-b71c8116996b 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aea94fb0-4dc5-42fc-859d-b71c8116996b 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/aea94fb0-4dc5-42fc-859d-b71c8116996b (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/aea94fb0-4dc5-42fc-859d-b71c8116996b', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 220s yielded = ctx_run(next, result) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 220s yield maybe_future(km.shutdown_kernel(kernel_id)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/aea94fb0-4dc5-42fc-859d-b71c8116996b (::1) 4.740000ms referer=None 220s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 220s 220s self = 220s 220s def tearDown(self): 220s for k in self.kern_api.list().json(): 220s > self.kern_api.shutdown(k['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/37e60cb0-025f-4a3c-a1f8-2b2d584ee37c 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvs_937a8/runtime/kernel-37e60cb0-025f-4a3c-a1f8-2b2d584ee37c.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51791 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54065 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37e60cb0-025f-4a3c-a1f8-2b2d584ee37c, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.250000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvs_937a8/runtime/kernel-8a05733e-9e60-474d-a421-a77533372339.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43241 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38033 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8a05733e-9e60-474d-a421-a77533372339, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.030000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 7.310000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 8a05733e-9e60-474d-a421-a77533372339 220s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/8a05733e-9e60-474d-a421-a77533372339/interrupt (::1) 0.560000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 220s yield maybe_future(km.restart_kernel(kernel_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 220s result = coro.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 220s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 220s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 220s yield self # This tells Task to wait for completion. 220s ^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 220s await ensure_async(kernel.restart_kernel(now=now)) 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 220s await self._async_shutdown_kernel(now=now, restart=True) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/8a05733e-9e60-474d-a421-a77533372339/restart (::1) 3.970000ms referer=None 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37e60cb0-025f-4a3c-a1f8-2b2d584ee37c 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37e60cb0-025f-4a3c-a1f8-2b2d584ee37c 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/37e60cb0-025f-4a3c-a1f8-2b2d584ee37c (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/37e60cb0-025f-4a3c-a1f8-2b2d584ee37c', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 220s yield maybe_future(km.shutdown_kernel(kernel_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/37e60cb0-025f-4a3c-a1f8-2b2d584ee37c (::1) 13.550000ms referer=None 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 220s from ipykernel import kernelapp as app 220s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 220s from .connect import * # noqa: F403 220s ^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 220s import jupyter_client 220s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 220s from .asynchronous import AsyncKernelClient 220s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 220s from .client import AsyncKernelClient # noqa 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 220s import zmq.asyncio 220s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 220s from zmq import backend 220s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 220s _ns = select_backend(first) 220s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 220s mod = import_module(name) 220s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 220s return _bootstrap._gcd_import(name[level:], package, level) 220s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 220s from . import _zmq 220s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 220s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 92, in 220s class SocketType(IntEnum): 220s ...<31 lines>... 220s CHANNEL = 20 220s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 220s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 220s File "/usr/lib/python3.13/enum.py", line 325, in __set_name__ 220s enum_class._add_member_(member_name, enum_member) 220s ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/enum.py", line 1102, in _add_member_ 220s setattr(cls, name, member) 220s ~~~~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/enum.py", line 840, in __setattr__ 220s super().__setattr__(name, value) 220s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 220s KeyboardInterrupt 220s Error calling __set_name__ on '_proto_member' instance 'XPUB' in 'SocketType' 220s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 14, in 220s import importlib.machinery # importlib first so we can test #15386 via -m 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 911, in _load_unlocked 220s KeyboardInterrupt 220s Traceback (most recent call last): 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3w0f55gc/runtime/kernel-c8eb3866-4e14-45ac-a281-16cb8dfd1b9a.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34471 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57991 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: c8eb3866-4e14-45ac-a281-16cb8dfd1b9a, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.320000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.720000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e5a0eed8-4a8a-4fa1-a942-6794937d6233 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e5a0eed8-4a8a-4fa1-a942-6794937d6233 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9a3a8283-a75b-4aa3-812a-726861dceb90 (::1) 0.650000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c8eb3866-4e14-45ac-a281-16cb8dfd1b9a 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c8eb3866-4e14-45ac-a281-16cb8dfd1b9a 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 220s yielded = self.gen.send(value) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 (::1) 19.940000ms referer=None 220s --------------------------- Captured stderr teardown --------------------------- 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 220s import functools 220s File "/usr/lib/python3.13/functools.py", line 18, in 220s from collections import namedtuple 220s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 220s from _collections import deque 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 946, in _load_unlocked 220s KeyboardInterrupt 220s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpece3fxce/runtime/kernel-6dd33ba8-e22a-420e-b65e-fb88bd2c55bf.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39159 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50803 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6dd33ba8-e22a-420e-b65e-fb88bd2c55bf, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.590000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.600000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.140000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 19942397-347c-43e0-876f-ffda81758b06 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 19942397-347c-43e0-876f-ffda81758b06 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9020fc11-9d1e-43fe-84cc-1d73fcece536 (::1) 2.370000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dd33ba8-e22a-420e-b65e-fb88bd2c55bf 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dd33ba8-e22a-420e-b65e-fb88bd2c55bf 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 (::1) 6.650000ms referer=None 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 220s from ipykernel import kernelapp as app 220s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 220s from .connect import * # noqa: F403 220s ^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 220s from subprocess import PIPE, Popen 220s File "/usr/lib/python3.13/subprocess.py", line 51, in 220s import threading 220s File "/usr/lib/python3.13/threading.py", line 269, in 220s class Condition: 220s ...<176 lines>... 220s self.notify_all() 220s KeyboardInterrupt 220s =================================== FAILURES =================================== 220s ______________________ KernelAPITest.test_default_kernel _______________________ 220s 220s self = 220s 220s def tearDown(self): 220s for k in self.kern_api.list().json(): 220s > self.kern_api.shutdown(k['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2bbf5fad-43a8-4612-90fc-92700f18613f 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log setup ------------------------------ 220s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp3ehmmuls/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp3ehmmuls/etc/jupyter'] for config files 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3ehmmuls/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3ehmmuls/config 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3ehmmuls/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3ehmmuls/config 220s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp3ehmmuls/notebooks 220s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 220s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 220s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 220s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 220s WARNING NotebookApp:handlers.py:612 Forbidden 220s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.630000ms referer=None 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3ehmmuls/runtime/kernel-2bbf5fad-43a8-4612-90fc-92700f18613f.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38379 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33691 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2bbf5fad-43a8-4612-90fc-92700f18613f, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 90.830000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2bbf5fad-43a8-4612-90fc-92700f18613f 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2bbf5fad-43a8-4612-90fc-92700f18613f 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2bbf5fad-43a8-4612-90fc-92700f18613f (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2bbf5fad-43a8-4612-90fc-92700f18613f', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 220s yielded = ctx_run(next, result) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 220s yield maybe_future(km.shutdown_kernel(kernel_id)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s ______________________ KernelAPITest.test_kernel_handler _______________________ 220s 220s self = 220s 220s def test_kernel_handler(self): 220s # GET kernel with given id 220s kid = self.kern_api.start().json()['id'] 220s r = self.kern_api.get(kid) 220s kern1 = r.json() 220s self.assertEqual(r.status_code, 200) 220s assert isinstance(kern1, dict) 220s self.assertIn('id', kern1) 220s self.assertEqual(kern1['id'], kid) 220s 220s # Request a bad kernel id and check that a JSON 220s # message is returned! 220s bad_id = '111-111-111-111-111' 220s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 220s self.kern_api.get(bad_id) 220s 220s # DELETE kernel with id 220s > r = self.kern_api.shutdown(kid) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c7fff552-5296-4d62-9563-5c570458b6d2 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 220s from glob import _Globber, _no_recurse_symlinks 220s File "/usr/lib/python3.13/glob.py", line 5, in 220s import re 220s File "/usr/lib/python3.13/re/__init__.py", line 126, in 220s from . import _compiler, _parser 220s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 220s from . import _parser 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 935, in _load_unlocked 220s File "", line 1019, in exec_module 220s File "", line 1152, in get_code 220s File "", line 781, in _compile_bytecode 220s KeyboardInterrupt 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3ehmmuls/runtime/kernel-c7fff552-5296-4d62-9563-5c570458b6d2.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37281 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36015 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: c7fff552-5296-4d62-9563-5c570458b6d2, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 23.400000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/c7fff552-5296-4d62-9563-5c570458b6d2 (::1) 0.410000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s 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 220s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 220s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.530000ms referer=None 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7fff552-5296-4d62-9563-5c570458b6d2 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7fff552-5296-4d62-9563-5c570458b6d2 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c7fff552-5296-4d62-9563-5c570458b6d2 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c7fff552-5296-4d62-9563-5c570458b6d2', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 220s yielded = ctx_run(next, result) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 220s yield maybe_future(km.shutdown_kernel(kernel_id)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/c7fff552-5296-4d62-9563-5c570458b6d2 (::1) 7.830000ms referer=None 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 262.200000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2bbf5fad-43a8-4612-90fc-92700f18613f 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2bbf5fad-43a8-4612-90fc-92700f18613f 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2bbf5fad-43a8-4612-90fc-92700f18613f (::1) 0.670000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7fff552-5296-4d62-9563-5c570458b6d2 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7fff552-5296-4d62-9563-5c570458b6d2 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c7fff552-5296-4d62-9563-5c570458b6d2 (::1) 0.680000ms 220s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 220s 220s self = 220s 220s def test_main_kernel_handler(self): 220s # POST request 220s r = self.kern_api.start() 220s kern1 = r.json() 220s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 220s self.assertEqual(r.status_code, 201) 220s self.assertIsInstance(kern1, dict) 220s 220s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 220s expected_csp = '; '.join([ 220s "frame-ancestors 'self'", 220s 'report-uri ' + report_uri, 220s "default-src 'none'" 220s ]) 220s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 220s 220s # GET request 220s r = self.kern_api.list() 220s self.assertEqual(r.status_code, 200) 220s assert isinstance(r.json(), list) 220s self.assertEqual(r.json()[0]['id'], kern1['id']) 220s self.assertEqual(r.json()[0]['name'], kern1['name']) 220s 220s # create another kernel and check that they both are added to the 220s # list of kernels from a GET request 220s kern2 = self.kern_api.start().json() 220s assert isinstance(kern2, dict) 220s r = self.kern_api.list() 220s kernels = r.json() 220s self.assertEqual(r.status_code, 200) 220s assert isinstance(kernels, list) 220s self.assertEqual(len(kernels), 2) 220s 220s # Interrupt a kernel 220s r = self.kern_api.interrupt(kern2['id']) 220s self.assertEqual(r.status_code, 204) 220s 220s # Restart a kernel 220s > r = self.kern_api.restart(kern2['id']) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 220s return self._req('POST', url_path_join(id, 'restart')) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/f744e3bd-87cc-4922-8a5c-7ca5f709e274/restart 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 220s import functools 220s File "/usr/lib/python3.13/functools.py", line 18, in 220s from collections import namedtuple 220s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 220s from reprlib import recursive_repr as _recursive_repr 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 935, in _load_unlocked 220s File "", line 1019, in exec_module 220s File "", line 1152, in get_code 220s File "", line 781, in _compile_bytecode 220s KeyboardInterrupt 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 220s from ipykernel import kernelapp as app 220s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 220s from .connect import * # noqa: F403 220s ^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 220s import jupyter_client 220s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 220s from .asynchronous import AsyncKernelClient 220s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 220s from .client import AsyncKernelClient # noqa 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 12, in 220s from ..channels import AsyncZMQSocketChannel, HBChannel 220s File "/usr/lib/python3/dist-packages/jupyter_client/channels.py", line 17, in 220s from .session import Session 220s File "/usr/lib/python3/dist-packages/jupyter_client/session.py", line 54, in 220s from .jsonutil import extract_dates, json_clean, json_default, squash_dates 220s File "/usr/lib/python3/dist-packages/jupyter_client/jsonutil.py", line 15, in 220s from dateutil.parser import isoparse as _dateutil_parse 220s File "", line 1360, in _find_and_load 220s File "", line 1322, in _find_and_load_unlocked 220s File "", line 1262, in _find_spec 220s File "", line 1556, in find_spec 220s File "", line 1528, in _get_spec 220s File "", line 1497, in _path_importer_cache 220s KeyboardInterrupt 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3ehmmuls/runtime/kernel-aea94fb0-4dc5-42fc-859d-b71c8116996b.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36217 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35265 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: aea94fb0-4dc5-42fc-859d-b71c8116996b, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 38.110000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3ehmmuls/runtime/kernel-f744e3bd-87cc-4922-8a5c-7ca5f709e274.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56975 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57115 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: f744e3bd-87cc-4922-8a5c-7ca5f709e274, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 72.460000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.330000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: f744e3bd-87cc-4922-8a5c-7ca5f709e274 220s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/f744e3bd-87cc-4922-8a5c-7ca5f709e274/interrupt (::1) 1.040000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 220s yield maybe_future(km.restart_kernel(kernel_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 220s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 220s await ensure_async(kernel.restart_kernel(now=now)) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 220s await self._async_shutdown_kernel(now=now, restart=True) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/f744e3bd-87cc-4922-8a5c-7ca5f709e274/restart (::1) 137.190000ms referer=None 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aea94fb0-4dc5-42fc-859d-b71c8116996b 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aea94fb0-4dc5-42fc-859d-b71c8116996b 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/aea94fb0-4dc5-42fc-859d-b71c8116996b (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/aea94fb0-4dc5-42fc-859d-b71c8116996b', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 220s yielded = ctx_run(next, result) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 220s yield maybe_future(km.shutdown_kernel(kernel_id)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/aea94fb0-4dc5-42fc-859d-b71c8116996b (::1) 4.740000ms referer=None 220s ________________________ KernelAPITest.test_no_kernels _________________________ 220s 220s self = 220s 220s def test_no_kernels(self): 220s """Make sure there are no kernels running at the start""" 220s kernels = self.kern_api.list().json() 220s > self.assertEqual(kernels, []) 220s E AssertionError: Lists differ: [{'id': 'aea94fb0-4dc5-42fc-859d-b71c81169[281 chars]: 0}] != [] 220s E 220s E First list contains 2 additional elements. 220s E First extra element 0: 220s E {'id': 'aea94fb0-4dc5-42fc-859d-b71c8116996b', 'name': 'python3', 'last_activity': '2026-02-02T09:04:11.614840Z', 'execution_state': 'starting', 'connections': 0} 220s E 220s E + [] 220s E - [{'connections': 0, 220s E - 'execution_state': 'starting', 220s E - 'id': 'aea94fb0-4dc5-42fc-859d-b71c8116996b', 220s E - 'last_activity': '2026-02-02T09:04:11.614840Z', 220s E - 'name': 'python3'}, 220s E - {'connections': 0, 220s E - 'execution_state': 'starting', 220s E - 'id': 'f744e3bd-87cc-4922-8a5c-7ca5f709e274', 220s E - 'last_activity': '2026-02-02T09:04:11.651116Z', 220s E - 'name': 'python3'}] 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for aea94fb0-4dc5-42fc-859d-b71c8116996b 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: aea94fb0-4dc5-42fc-859d-b71c8116996b 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/aea94fb0-4dc5-42fc-859d-b71c8116996b (::1) 0.780000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f744e3bd-87cc-4922-8a5c-7ca5f709e274 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f744e3bd-87cc-4922-8a5c-7ca5f709e274 220s ---------------------------- Captured log teardown ----------------------------- 220s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 220s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 220s _____________________ AsyncKernelAPITest.test_connections ______________________ 220s 220s self = 220s 220s def tearDown(self): 220s for k in self.kern_api.list().json(): 220s > self.kern_api.shutdown(k['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log setup ------------------------------ 220s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpvs_937a8/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpvs_937a8/etc/jupyter'] for config files 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvs_937a8/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvs_937a8/config 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvs_937a8/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvs_937a8/config 220s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpvs_937a8/notebooks 220s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 220s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 220s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 220s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 220s WARNING NotebookApp:handlers.py:612 Forbidden 220s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.760000ms referer=None 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvs_937a8/runtime/kernel-394d22ff-688e-46cc-a367-d975b95a172d.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53727 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60053 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 394d22ff-688e-46cc-a367-d975b95a172d, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.850000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d (::1) 0.410000ms 220s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d/channels 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 220s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 394d22ff-688e-46cc-a367-d975b95a172d 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37381 220s DEBUG NotebookApp:kernelmanager.py:423 activity on 394d22ff-688e-46cc-a367-d975b95a172d: status (starting) 220s DEBUG NotebookApp:kernelmanager.py:423 activity on 394d22ff-688e-46cc-a367-d975b95a172d: status (busy) 220s DEBUG NotebookApp:kernelmanager.py:423 activity on 394d22ff-688e-46cc-a367-d975b95a172d: status (idle) 220s 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/'}]} 220s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 394d22ff-688e-46cc-a367-d975b95a172d) to 5.4 (client). 220s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d/channels (::1) 1213.880000ms 220s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d/channels 220s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 394d22ff-688e-46cc-a367-d975b95a172d 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60053 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37381 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53727 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56481 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37381 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53727 220s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 220s Setting websocket_ping_timeout=30000 220s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 394d22ff-688e-46cc-a367-d975b95a172d 220s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 394d22ff-688e-46cc-a367-d975b95a172d 220s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 394d22ff-688e-46cc-a367-d975b95a172d 220s DEBUG NotebookApp:kernelmanager.py:423 activity on 394d22ff-688e-46cc-a367-d975b95a172d: status (busy) 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d (::1) 0.530000ms 220s DEBUG NotebookApp:kernelmanager.py:423 activity on 394d22ff-688e-46cc-a367-d975b95a172d: status (busy) 220s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 394d22ff-688e-46cc-a367-d975b95a172d 220s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 394d22ff-688e-46cc-a367-d975b95a172d 220s DEBUG NotebookApp:kernelmanager.py:423 activity on 394d22ff-688e-46cc-a367-d975b95a172d: status (idle) 220s DEBUG NotebookApp:handlers.py:579 Websocket closed 394d22ff-688e-46cc-a367-d975b95a172d:0224a1ab-a4e5642b2491c60049e27d9d 220s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 394d22ff-688e-46cc-a367-d975b95a172d:0224a1ab-a4e5642b2491c60049e27d9d 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 394d22ff-688e-46cc-a367-d975b95a172d 220s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 394d22ff-688e-46cc-a367-d975b95a172d:iopub 220s DEBUG NotebookApp:kernelmanager.py:423 activity on 394d22ff-688e-46cc-a367-d975b95a172d: status (idle) 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d (::1) 0.520000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d (::1) 0.540000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.620000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 394d22ff-688e-46cc-a367-d975b95a172d 220s INFO NotebookApp:kernelmanager.py:286 Discarding 1 buffered messages for 394d22ff-688e-46cc-a367-d975b95a172d:0224a1ab-a4e5642b2491c60049e27d9d 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 394d22ff-688e-46cc-a367-d975b95a172d 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 220s yield maybe_future(km.shutdown_kernel(kernel_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d (::1) 8.080000ms referer=None 220s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 220s 220s self = 220s 220s def tearDown(self): 220s for k in self.kern_api.list().json(): 220s > self.kern_api.shutdown(k['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/c93a5639-d980-406d-8c24-ba7886cb1298 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvs_937a8/runtime/kernel-c93a5639-d980-406d-8c24-ba7886cb1298.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33341 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47693 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: c93a5639-d980-406d-8c24-ba7886cb1298, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 271.330000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.640000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 394d22ff-688e-46cc-a367-d975b95a172d 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 394d22ff-688e-46cc-a367-d975b95a172d 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/394d22ff-688e-46cc-a367-d975b95a172d (::1) 0.480000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c93a5639-d980-406d-8c24-ba7886cb1298 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c93a5639-d980-406d-8c24-ba7886cb1298 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/c93a5639-d980-406d-8c24-ba7886cb1298 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/c93a5639-d980-406d-8c24-ba7886cb1298', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 220s yield maybe_future(km.shutdown_kernel(kernel_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s --------------------------- Captured stderr teardown --------------------------- 220s Fatal Python error: init_import_site: Failed to import the site module 220s Python runtime state: initialized 220s Traceback (most recent call last): 220s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 220s 220s self = 220s 220s def test_kernel_handler(self): 220s # GET kernel with given id 220s kid = self.kern_api.start().json()['id'] 220s r = self.kern_api.get(kid) 220s kern1 = r.json() 220s self.assertEqual(r.status_code, 200) 220s assert isinstance(kern1, dict) 220s self.assertIn('id', kern1) 220s self.assertEqual(kern1['id'], kid) 220s 220s # Request a bad kernel id and check that a JSON 220s # message is returned! 220s bad_id = '111-111-111-111-111' 220s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 220s self.kern_api.get(bad_id) 220s 220s # DELETE kernel with id 220s > r = self.kern_api.shutdown(kid) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s File "/usr/lib/python3.13/site.py", line 79, in 220s import os 220s File "/usr/lib/python3.13/os.py", line 27, in 220s import stat as st 220s File "/usr/lib/python3.13/stat.py", line 205, in 220s from _stat import * 220s KeyboardInterrupt 220s Traceback (most recent call last): 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvs_937a8/runtime/kernel-b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43149 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34683 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.720000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 (::1) 1.330000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s 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 220s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 220s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 3.760000ms referer=None 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 220s yield maybe_future(km.shutdown_kernel(kernel_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 (::1) 9.710000ms referer=None 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.310000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c93a5639-d980-406d-8c24-ba7886cb1298 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c93a5639-d980-406d-8c24-ba7886cb1298 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c93a5639-d980-406d-8c24-ba7886cb1298 (::1) 9.010000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 (::1) 0.430000ms 220s --------------------------- Captured stderr teardown --------------------------- 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 220s import functools 220s File "/usr/lib/python3.13/functools.py", line 18, in 220s from collections import namedtuple 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 935, in _load_unlocked 220s File "", line 1019, in exec_module 220s File "", line 1152, in get_code 220s File "", line 781, in _compile_bytecode 220s KeyboardInterrupt 220s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 220s 220s self = 220s 220s def test_main_kernel_handler(self): 220s # POST request 220s r = self.kern_api.start() 220s kern1 = r.json() 220s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 220s self.assertEqual(r.status_code, 201) 220s self.assertIsInstance(kern1, dict) 220s 220s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 220s expected_csp = '; '.join([ 220s "frame-ancestors 'self'", 220s 'report-uri ' + report_uri, 220s "default-src 'none'" 220s ]) 220s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 220s 220s # GET request 220s r = self.kern_api.list() 220s self.assertEqual(r.status_code, 200) 220s assert isinstance(r.json(), list) 220s self.assertEqual(r.json()[0]['id'], kern1['id']) 220s self.assertEqual(r.json()[0]['name'], kern1['name']) 220s 220s # create another kernel and check that they both are added to the 220s # list of kernels from a GET request 220s kern2 = self.kern_api.start().json() 220s assert isinstance(kern2, dict) 220s r = self.kern_api.list() 220s kernels = r.json() 220s self.assertEqual(r.status_code, 200) 220s assert isinstance(kernels, list) 220s self.assertEqual(len(kernels), 2) 220s 220s # Interrupt a kernel 220s r = self.kern_api.interrupt(kern2['id']) 220s self.assertEqual(r.status_code, 204) 220s 220s # Restart a kernel 220s > r = self.kern_api.restart(kern2['id']) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 220s return self._req('POST', url_path_join(id, 'restart')) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/8a05733e-9e60-474d-a421-a77533372339/restart 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvs_937a8/runtime/kernel-37e60cb0-025f-4a3c-a1f8-2b2d584ee37c.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51791 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54065 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37e60cb0-025f-4a3c-a1f8-2b2d584ee37c, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.250000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.550000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvs_937a8/runtime/kernel-8a05733e-9e60-474d-a421-a77533372339.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43241 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38033 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8a05733e-9e60-474d-a421-a77533372339, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.030000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 7.310000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 8a05733e-9e60-474d-a421-a77533372339 220s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/8a05733e-9e60-474d-a421-a77533372339/interrupt (::1) 0.560000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 220s yield maybe_future(km.restart_kernel(kernel_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 220s result = coro.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 220s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 220s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 220s yield self # This tells Task to wait for completion. 220s ^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 220s await ensure_async(kernel.restart_kernel(now=now)) 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 220s await self._async_shutdown_kernel(now=now, restart=True) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/8a05733e-9e60-474d-a421-a77533372339/restart (::1) 3.970000ms referer=None 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37e60cb0-025f-4a3c-a1f8-2b2d584ee37c 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37e60cb0-025f-4a3c-a1f8-2b2d584ee37c 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/37e60cb0-025f-4a3c-a1f8-2b2d584ee37c (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/37e60cb0-025f-4a3c-a1f8-2b2d584ee37c', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 220s yield maybe_future(km.shutdown_kernel(kernel_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/37e60cb0-025f-4a3c-a1f8-2b2d584ee37c (::1) 13.550000ms referer=None 220s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 220s 220s self = 220s 220s def test_no_kernels(self): 220s """Make sure there are no kernels running at the start""" 220s kernels = self.kern_api.list().json() 220s > self.assertEqual(kernels, []) 220s E AssertionError: Lists differ: [{'id': '37e60cb0-025f-4a3c-a1f8-2b2d584ee[281 chars]: 0}] != [] 220s E 220s E First list contains 2 additional elements. 220s E First extra element 0: 220s E {'id': '37e60cb0-025f-4a3c-a1f8-2b2d584ee37c', 'name': 'python3', 'last_activity': '2026-02-02T09:04:13.685929Z', 'execution_state': 'starting', 'connections': 0} 220s E 220s E + [] 220s E - [{'connections': 0, 220s E - 'execution_state': 'starting', 220s E - 'id': '37e60cb0-025f-4a3c-a1f8-2b2d584ee37c', 220s E - 'last_activity': '2026-02-02T09:04:13.685929Z', 220s E - 'name': 'python3'}, 220s E - {'connections': 0, 220s E - 'execution_state': 'starting', 220s E - 'id': '8a05733e-9e60-474d-a421-a77533372339', 220s E - 'last_activity': '2026-02-02T09:04:13.705003Z', 220s E - 'name': 'python3'}] 220s 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37e60cb0-025f-4a3c-a1f8-2b2d584ee37c 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37e60cb0-025f-4a3c-a1f8-2b2d584ee37c 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/37e60cb0-025f-4a3c-a1f8-2b2d584ee37c (::1) 0.470000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a05733e-9e60-474d-a421-a77533372339 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a05733e-9e60-474d-a421-a77533372339 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8a05733e-9e60-474d-a421-a77533372339 (::1) 0.610000ms 220s ---------------------------- Captured log teardown ----------------------------- 220s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37e60cb0-025f-4a3c-a1f8-2b2d584ee37c 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 394d22ff-688e-46cc-a367-d975b95a172d 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c93a5639-d980-406d-8c24-ba7886cb1298 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b25efa4a-ea6a-47da-a30f-0ea3cb5ddcc9 220s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 220s __________________________ SessionAPITest.test_create __________________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/94878b25-c6eb-4f3a-8554-cdde244bb0d5 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log setup ------------------------------ 220s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp3w0f55gc/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp3w0f55gc/etc/jupyter'] for config files 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3w0f55gc/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp3w0f55gc/config 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3w0f55gc/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp3w0f55gc/config 220s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp3w0f55gc/notebooks 220s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 220s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 220s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 220s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 220s WARNING NotebookApp:handlers.py:612 Forbidden 220s ------------------------------ Captured log call ------------------------------- 220s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 10.350000ms referer=None 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3w0f55gc/runtime/kernel-cd0c75c7-5533-4bf1-b0db-215e5361e2da.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55353 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56251 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: cd0c75c7-5533-4bf1-b0db-215e5361e2da, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3w0f55gc/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.800000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/94878b25-c6eb-4f3a-8554-cdde244bb0d5 (::1) 0.440000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cd0c75c7-5533-4bf1-b0db-215e5361e2da 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cd0c75c7-5533-4bf1-b0db-215e5361e2da 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/94878b25-c6eb-4f3a-8554-cdde244bb0d5 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/94878b25-c6eb-4f3a-8554-cdde244bb0d5', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 220s yielded = self.gen.send(value) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/94878b25-c6eb-4f3a-8554-cdde244bb0d5 (::1) 10.300000ms referer=None 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 220s import functools 220s File "/usr/lib/python3.13/functools.py", line 18, in 220s from collections import namedtuple 220s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 220s from reprlib import recursive_repr as _recursive_repr 220s File "/usr/lib/python3.13/reprlib.py", line 38, in 220s class Repr: 220s ...<178 lines>... 220s return s 220s KeyboardInterrupt 220s __________________ SessionAPITest.test_create_console_session __________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a76e10c7-dee1-414d-84a7-c37ab5818160 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3w0f55gc/runtime/kernel-fe5e7d24-a2cf-4f28-b448-a5361d4221ab.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40435 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47255 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe5e7d24-a2cf-4f28-b448-a5361d4221ab, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3w0f55gc/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 31.870000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.810000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cd0c75c7-5533-4bf1-b0db-215e5361e2da 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cd0c75c7-5533-4bf1-b0db-215e5361e2da 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/94878b25-c6eb-4f3a-8554-cdde244bb0d5 (::1) 20.580000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe5e7d24-a2cf-4f28-b448-a5361d4221ab 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe5e7d24-a2cf-4f28-b448-a5361d4221ab 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a76e10c7-dee1-414d-84a7-c37ab5818160 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a76e10c7-dee1-414d-84a7-c37ab5818160', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 220s yielded = self.gen.send(value) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a76e10c7-dee1-414d-84a7-c37ab5818160 (::1) 22.030000ms referer=None 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 220s from glob import _Globber, _no_recurse_symlinks 220s File "/usr/lib/python3.13/glob.py", line 3, in 220s import contextlib 220s File "/usr/lib/python3.13/contextlib.py", line 342, in 220s class closing(AbstractContextManager): 220s ...<21 lines>... 220s self.thing.close() 220s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 220s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 220s KeyboardInterrupt 220s ____________________ SessionAPITest.test_create_deprecated _____________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aba27cd4-9d29-4abb-8ec7-a2a0613b7463 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Fatal Python error: init_import_site: Failed to import the site module 220s Python runtime state: initialized 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3w0f55gc/runtime/kernel-7fc09005-1604-4d7e-bbc0-a355cd008134.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35587 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46985 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7fc09005-1604-4d7e-bbc0-a355cd008134, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3w0f55gc/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.380000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.670000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe5e7d24-a2cf-4f28-b448-a5361d4221ab 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe5e7d24-a2cf-4f28-b448-a5361d4221ab 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a76e10c7-dee1-414d-84a7-c37ab5818160 (::1) 1.500000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7fc09005-1604-4d7e-bbc0-a355cd008134 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7fc09005-1604-4d7e-bbc0-a355cd008134 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aba27cd4-9d29-4abb-8ec7-a2a0613b7463 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aba27cd4-9d29-4abb-8ec7-a2a0613b7463', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 220s yielded = self.gen.send(value) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/site.py", line 735, in 220s main() 220s ~~~~^^ 220s File "/usr/lib/python3.13/site.py", line 722, in main 220s known_paths = addsitepackages(known_paths) 220s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 220s addsitedir(sitedir, known_paths) 220s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 220s addpackage(sitedir, name, known_paths) 220s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/site.py", line 213, in addpackage 220s exec(line) 220s ~~~~^^^^^^ 220s File "", line 0, in 220s KeyboardInterrupt 220s ___________________ SessionAPITest.test_create_file_session ____________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9a3a8283-a75b-4aa3-812a-726861dceb90 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Could not import runpy module 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3w0f55gc/runtime/kernel-e5a0eed8-4a8a-4fa1-a942-6794937d6233.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48403 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55129 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: e5a0eed8-4a8a-4fa1-a942-6794937d6233, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3w0f55gc/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.710000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.300000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7fc09005-1604-4d7e-bbc0-a355cd008134 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7fc09005-1604-4d7e-bbc0-a355cd008134 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/aba27cd4-9d29-4abb-8ec7-a2a0613b7463 (::1) 0.520000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e5a0eed8-4a8a-4fa1-a942-6794937d6233 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e5a0eed8-4a8a-4fa1-a942-6794937d6233 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9a3a8283-a75b-4aa3-812a-726861dceb90 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9a3a8283-a75b-4aa3-812a-726861dceb90', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 220s yielded = self.gen.send(value) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 220s 220s self = 220s 220s def test_create_with_kernel_id(self): 220s # create a new kernel 220s r = self.request('POST', 'api/kernels') 220s r.raise_for_status() 220s kernel = r.json() 220s 220s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 220s self.assertEqual(resp.status_code, 201) 220s newsession = resp.json() 220s self.assertIn('id', newsession) 220s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 220s self.assertEqual(newsession['kernel']['id'], kernel['id']) 220s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 220s 220s sessions = self.sess_api.list().json() 220s > self.assertEqual(sessions, [newsession]) 220s E AssertionError: Lists differ: [{'id': '9a3a8283-a75b-4aa3-812a-726861dceb90', 'p[553 chars]ne}}] != [{'id': '8b570348-d0c2-4b9c-85d7-808c780c5659', 'p[279 chars]ne}}] 220s E 220s E First differing element 0: 220s E {'id': '9a3a8283-a75b-4aa3-812a-726861dceb90', 'p[218 chars]: 0}} 220s E {'id': '8b570348-d0c2-4b9c-85d7-808c780c5659', 'p[278 chars]one}} 220s E 220s E First list contains 1 additional elements. 220s E First extra element 1: 220s E {'id': '8b570348-d0c2-4b9c-85d7-808c780c5659', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'c8eb3866-4e14-45ac-a281-16cb8dfd1b9a', 'name': 'python3', 'last_activity': '2026-02-02T09:04:14.426183Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 220s E 220s E Diff is 830 characters long. Set self.maxDiff to None to see it. 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 14, in 220s import importlib.machinery # importlib first so we can test #15386 via -m 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 911, in _load_unlocked 220s KeyboardInterrupt 220s Traceback (most recent call last): 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3w0f55gc/runtime/kernel-c8eb3866-4e14-45ac-a281-16cb8dfd1b9a.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34471 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57991 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: c8eb3866-4e14-45ac-a281-16cb8dfd1b9a, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.320000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.720000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e5a0eed8-4a8a-4fa1-a942-6794937d6233 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e5a0eed8-4a8a-4fa1-a942-6794937d6233 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9a3a8283-a75b-4aa3-812a-726861dceb90 (::1) 0.650000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c8eb3866-4e14-45ac-a281-16cb8dfd1b9a 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c8eb3866-4e14-45ac-a281-16cb8dfd1b9a 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 220s yielded = self.gen.send(value) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 (::1) 19.940000ms referer=None 220s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 4.490000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3w0f55gc/runtime/kernel-5ad30b23-0396-454d-9bcd-2dcccf61eefe.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57517 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54427 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5ad30b23-0396-454d-9bcd-2dcccf61eefe, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 28.030000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c8eb3866-4e14-45ac-a281-16cb8dfd1b9a 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c8eb3866-4e14-45ac-a281-16cb8dfd1b9a 220s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 (::1) 1.490000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.540000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ad30b23-0396-454d-9bcd-2dcccf61eefe 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ad30b23-0396-454d-9bcd-2dcccf61eefe 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 220s yielded = self.gen.send(value) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 (::1) 7.080000ms referer=None 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 220s from ipykernel import kernelapp as app 220s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 220s from .connect import * # noqa: F403 220s ^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 220s import json 220s File "/usr/lib/python3.13/json/__init__.py", line 106, in 220s from .decoder import JSONDecoder, JSONDecodeError 220s File "/usr/lib/python3.13/json/decoder.py", line 5, in 220s from json import scanner 220s File "/usr/lib/python3.13/json/scanner.py", line 11, in 220s NUMBER_RE = re.compile( 220s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 220s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 220s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 220s return _compile(pattern, flags) 220s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 220s p = _compiler.compile(pattern, flags) 220s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 220s p = _parser.parse(p, flags) 220s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 220s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 220s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 220s itemsappend(_parse(source, state, verbose, nested + 1, 220s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s not nested and not items)) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/re/_parser.py", line 640, in _parse 220s here = source.tell() 220s File "/usr/lib/python3.13/re/_parser.py", line 292, in tell 220s def tell(self): 220s 220s KeyboardInterrupt 220s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Fatal Python error: init_import_site: Failed to import the site module 220s Python runtime state: initialized 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 5.810000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3w0f55gc/runtime/kernel-020ac790-8fe3-48e7-92a7-48d56d3a56c5.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53877 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39887 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 020ac790-8fe3-48e7-92a7-48d56d3a56c5, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp3w0f55gc/notebooks/foo'} 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ad30b23-0396-454d-9bcd-2dcccf61eefe 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ad30b23-0396-454d-9bcd-2dcccf61eefe 220s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 (::1) 18.730000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.670000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.630000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 020ac790-8fe3-48e7-92a7-48d56d3a56c5 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 020ac790-8fe3-48e7-92a7-48d56d3a56c5 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8b570348-d0c2-4b9c-85d7-808c780c5659', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 220s yielded = self.gen.send(value) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/site.py", line 79, in 220s import os 220s File "/usr/lib/python3.13/os.py", line 61, in 220s import posixpath as path 220s File "/usr/lib/python3.13/posixpath.py", line 29, in 220s import genericpath 220s File "", line 1360, in _find_and_load 220s File "", line 1322, in _find_and_load_unlocked 220s File "", line 1262, in _find_spec 220s File "", line 1556, in find_spec 220s File "", line 1530, in _get_spec 220s File "", line 1661, in find_spec 220s KeyboardInterrupt 220s _______________________ SessionAPITest.test_modify_type ________________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4b32a73a-c136-424d-8655-abe6e146c2ce 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp3w0f55gc/runtime/kernel-b5f688bb-6e43-4e38-a3ad-29e8eeae33d9.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47125 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40913 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: b5f688bb-6e43-4e38-a3ad-29e8eeae33d9, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp3w0f55gc/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.230000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/4b32a73a-c136-424d-8655-abe6e146c2ce (::1) 2.250000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b5f688bb-6e43-4e38-a3ad-29e8eeae33d9 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b5f688bb-6e43-4e38-a3ad-29e8eeae33d9 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4b32a73a-c136-424d-8655-abe6e146c2ce (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4b32a73a-c136-424d-8655-abe6e146c2ce', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 220s yielded = self.gen.send(value) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 220s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 220s stopper = ensure_async(km.shutdown_kernel(now, restart)) 220s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 220s return _runner_map[name].run(inner) 220s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 220s return fut.result(None) 220s ~~~~~~~~~~^^^^^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 220s return self.__get_result() 220s ~~~~~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 220s raise self._exception 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s --------------------------- Captured stderr teardown --------------------------- 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 220s from glob import _Globber, _no_recurse_symlinks 220s File "/usr/lib/python3.13/glob.py", line 6, in 220s import fnmatch 220s File "", line 1360, in _find_and_load 220s File "", line 1322, in _find_and_load_unlocked 220s File "", line 1262, in _find_spec 220s File "", line 1556, in find_spec 220s File "", line 1530, in _get_spec 220s File "", line 1629, in find_spec 220s File "", line 152, in _path_stat 220s KeyboardInterrupt 220s ---------------------------- Captured log teardown ----------------------------- 220s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b5f688bb-6e43-4e38-a3ad-29e8eeae33d9 220s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 220s _______________________ AsyncSessionAPITest.test_create ________________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dee8c4b6-75a1-42d2-9544-a222fd85985a 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log setup ------------------------------ 220s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpece3fxce/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpece3fxce/etc/jupyter'] for config files 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpece3fxce/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpece3fxce/config 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpece3fxce/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 220s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpece3fxce/config 220s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpece3fxce/notebooks 220s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 220s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 220s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 220s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 220s WARNING NotebookApp:handlers.py:612 Forbidden 220s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.390000ms referer=None 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpece3fxce/runtime/kernel-fdbe356b-6fc4-440e-b2a5-3a66689cf09f.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55303 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60485 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: fdbe356b-6fc4-440e-b2a5-3a66689cf09f, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpece3fxce/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.350000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.580000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/dee8c4b6-75a1-42d2-9544-a222fd85985a (::1) 6.430000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.590000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fdbe356b-6fc4-440e-b2a5-3a66689cf09f 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fdbe356b-6fc4-440e-b2a5-3a66689cf09f 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 220s gc.collect() 220s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 220s =pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dee8c4b6-75a1-42d2-9544-a222fd85985a (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dee8c4b6-75a1-42d2-9544-a222fd85985a', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s --------------------------- Captured stderr teardown --------------------------- 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 220s from ipykernel import kernelapp as app 220s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 220s from .connect import * # noqa: F403 220s ^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 220s from subprocess import PIPE, Popen 220s File "/usr/lib/python3.13/subprocess.py", line 46, in 220s import locale 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 935, in _load_unlocked 220s File "", line 1019, in exec_module 220s File "", line 1152, in get_code 220s File "", line 781, in _compile_bytecode 220s KeyboardInterrupt 220s _______________ AsyncSessionAPITest.test_create_console_session ________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7ec5d0b9-cc03-4b3b-aedc-25576fce4ac4 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpece3fxce/runtime/kernel-d4042d05-443f-4300-ab1d-e4818229e2d7.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51629 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54115 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: d4042d05-443f-4300-ab1d-e4818229e2d7, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpece3fxce/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.530000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fdbe356b-6fc4-440e-b2a5-3a66689cf09f 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fdbe356b-6fc4-440e-b2a5-3a66689cf09f 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dee8c4b6-75a1-42d2-9544-a222fd85985a (::1) 1.480000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4042d05-443f-4300-ab1d-e4818229e2d7 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4042d05-443f-4300-ab1d-e4818229e2d7 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7ec5d0b9-cc03-4b3b-aedc-25576fce4ac4 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7ec5d0b9-cc03-4b3b-aedc-25576fce4ac4', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 220s from glob import _Globber, _no_recurse_symlinks 220s File "/usr/lib/python3.13/glob.py", line 3, in 220s import contextlib 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 946, in _load_unlocked 220s KeyboardInterrupt 220s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0f968c00-81de-41ff-96df-c26466e7711c 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 220s from ._local import * 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 935, in _load_unlocked 220s File "", line 1019, in exec_module 220s File "", line 1152, in get_code 220s File "", line 781, in _compile_bytecode 220s KeyboardInterrupt 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpece3fxce/runtime/kernel-70d833c1-3561-4824-b0f2-a8abd792a19f.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36791 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46953 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 70d833c1-3561-4824-b0f2-a8abd792a19f, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpece3fxce/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.260000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d4042d05-443f-4300-ab1d-e4818229e2d7 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4042d05-443f-4300-ab1d-e4818229e2d7 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7ec5d0b9-cc03-4b3b-aedc-25576fce4ac4 (::1) 1.670000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70d833c1-3561-4824-b0f2-a8abd792a19f 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70d833c1-3561-4824-b0f2-a8abd792a19f 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0f968c00-81de-41ff-96df-c26466e7711c (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0f968c00-81de-41ff-96df-c26466e7711c', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s _________________ AsyncSessionAPITest.test_create_file_session _________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9020fc11-9d1e-43fe-84cc-1d73fcece536 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 220s from pathlib import Path 220s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 220s from ._abc import * 220s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 220s from glob import _Globber, _no_recurse_symlinks 220s File "/usr/lib/python3.13/glob.py", line 5, in 220s import re 220s File "/usr/lib/python3.13/re/__init__.py", line 381, in 220s import copyreg 220s File "", line 1360, in _find_and_load 220s File "", line 1331, in _find_and_load_unlocked 220s File "", line 921, in _load_unlocked 220s File "", line 819, in module_from_spec 220s File "", line 798, in _init_module_attrs 220s File "", line 638, in cached 220s File "", line 642, in _get_cached 220s File "", line 535, in cache_from_source 220s File "", line 139, in _path_split 220s File "", line 139, in 220s KeyboardInterrupt 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpece3fxce/runtime/kernel-19942397-347c-43e0-876f-ffda81758b06.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34821 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33047 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 19942397-347c-43e0-876f-ffda81758b06, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpece3fxce/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.680000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.490000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 70d833c1-3561-4824-b0f2-a8abd792a19f 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70d833c1-3561-4824-b0f2-a8abd792a19f 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0f968c00-81de-41ff-96df-c26466e7711c (::1) 0.580000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 19942397-347c-43e0-876f-ffda81758b06 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 19942397-347c-43e0-876f-ffda81758b06 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9020fc11-9d1e-43fe-84cc-1d73fcece536 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9020fc11-9d1e-43fe-84cc-1d73fcece536', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 220s 220s self = 220s 220s def test_create_with_kernel_id(self): 220s # create a new kernel 220s r = self.request('POST', 'api/kernels') 220s r.raise_for_status() 220s kernel = r.json() 220s 220s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 220s self.assertEqual(resp.status_code, 201) 220s newsession = resp.json() 220s self.assertIn('id', newsession) 220s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 220s self.assertEqual(newsession['kernel']['id'], kernel['id']) 220s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 220s 220s sessions = self.sess_api.list().json() 220s > self.assertEqual(sessions, [newsession]) 220s E AssertionError: Lists differ: [{'id': '9020fc11-9d1e-43fe-84cc-1d73fcece536', 'p[553 chars]ne}}] != [{'id': '61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0', 'p[279 chars]ne}}] 220s E 220s E First differing element 0: 220s E {'id': '9020fc11-9d1e-43fe-84cc-1d73fcece536', 'p[218 chars]: 0}} 220s E {'id': '61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0', 'p[278 chars]one}} 220s E 220s E First list contains 1 additional elements. 220s E First extra element 1: 220s E {'id': '61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '6dd33ba8-e22a-420e-b65e-fb88bd2c55bf', 'name': 'python3', 'last_activity': '2026-02-02T09:04:15.753484Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 220s E 220s E Diff is 830 characters long. Set self.maxDiff to None to see it. 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpece3fxce/runtime/kernel-6dd33ba8-e22a-420e-b65e-fb88bd2c55bf.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39159 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50803 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6dd33ba8-e22a-420e-b65e-fb88bd2c55bf, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.590000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.600000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.140000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 19942397-347c-43e0-876f-ffda81758b06 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 19942397-347c-43e0-876f-ffda81758b06 220s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9020fc11-9d1e-43fe-84cc-1d73fcece536 (::1) 2.370000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dd33ba8-e22a-420e-b65e-fb88bd2c55bf 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dd33ba8-e22a-420e-b65e-fb88bd2c55bf 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 (::1) 6.650000ms referer=None 220s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Fatal Python error: init_import_site: Failed to import the site module 220s Python runtime state: initialized 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 22.570000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpece3fxce/runtime/kernel-1fe340cd-8a6b-4512-b078-7432ca06421e.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40179 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46351 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1fe340cd-8a6b-4512-b078-7432ca06421e, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.210000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dd33ba8-e22a-420e-b65e-fb88bd2c55bf 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dd33ba8-e22a-420e-b65e-fb88bd2c55bf 220s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 (::1) 4.350000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.480000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1fe340cd-8a6b-4512-b078-7432ca06421e 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1fe340cd-8a6b-4512-b078-7432ca06421e 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/site.py", line 735, in 220s main() 220s ~~~~^^ 220s File "/usr/lib/python3.13/site.py", line 722, in main 220s known_paths = addsitepackages(known_paths) 220s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 220s addsitedir(sitedir, known_paths) 220s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 220s addpackage(sitedir, name, known_paths) 220s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/site.py", line 197, in addpackage 220s pth_content = pth_content.decode("utf-8-sig") 220s File "/usr/lib/python3.13/encodings/__init__.py", line 99, in search_function 220s mod = __import__('encodings.' + modname, fromlist=_import_tail, 220s level=0) 220s File "/usr/lib/python3.13/encodings/utf_8_sig.py", line 85, in 220s class StreamWriter(codecs.StreamWriter): 220s ...<9 lines>... 220s return encode(input, errors) 220s File "/usr/lib/python3.13/encodings/utf_8_sig.py", line 85, in StreamWriter 220s class StreamWriter(codecs.StreamWriter): 220s 220s KeyboardInterrupt 220s Fatal Python error: init_import_site: Failed to import the site module 220s Python runtime state: initialized 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.600000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpece3fxce/runtime/kernel-88a0bd92-0fce-4285-80c7-f8bae5089046.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56449 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59545 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 88a0bd92-0fce-4285-80c7-f8bae5089046, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpece3fxce/notebooks/foo'} 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1fe340cd-8a6b-4512-b078-7432ca06421e 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1fe340cd-8a6b-4512-b078-7432ca06421e 220s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 (::1) 282.290000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.480000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.520000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88a0bd92-0fce-4285-80c7-f8bae5089046 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88a0bd92-0fce-4285-80c7-f8bae5089046 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/61fdd96e-fb06-4a17-bbe4-dbcb98cdc1d0 (::1) 6.190000ms referer=None 220s --------------------------- Captured stderr teardown --------------------------- 220s Traceback (most recent call last): 220s File "/usr/lib/python3.13/site.py", line 79, in 220s import os 220s File "/usr/lib/python3.13/os.py", line 29, in 220s from _collections_abc import _check_methods 220s File "/usr/lib/python3.13/_collections_abc.py", line 78, in 220s set_iterator = type(iter(set())) 220s ~~~~^^^^^^^ 220s KeyboardInterrupt 220s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 220s 220s @self.addCleanup 220s def cleanup_sessions(): 220s for session in self.sess_api.list().json(): 220s > self.sess_api.delete(session['id']) 220s 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 220s return self._req('DELETE', id) 220s ^^^^^^^^^^^^^^^^^^^^^^^ 220s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 220s response.raise_for_status() 220s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 220s 220s self = 220s 220s def raise_for_status(self): 220s """Raises :class:`HTTPError`, if one occurred.""" 220s 220s http_error_msg = "" 220s if isinstance(self.reason, bytes): 220s # We attempt to decode utf-8 first because some servers 220s # choose to localize their reason strings. If the string 220s # isn't utf-8, we fall back to iso-8859-1 for all other 220s # encodings. (See PR #3538) 220s try: 220s reason = self.reason.decode("utf-8") 220s except UnicodeDecodeError: 220s reason = self.reason.decode("iso-8859-1") 220s else: 220s reason = self.reason 220s 220s if 400 <= self.status_code < 500: 220s http_error_msg = ( 220s f"{self.status_code} Client Error: {reason} for url: {self.url}" 220s ) 220s 220s elif 500 <= self.status_code < 600: 220s http_error_msg = ( 220s f"{self.status_code} Server Error: {reason} for url: {self.url}" 220s ) 220s 220s if http_error_msg: 220s > raise HTTPError(http_error_msg, response=self) 220s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/97a2f72e-9e39-4d0d-bd6e-7918cc3eec24 220s 220s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 220s ----------------------------- Captured stderr call ----------------------------- 220s Traceback (most recent call last): 220s ------------------------------ Captured log call ------------------------------- 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 220s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpece3fxce/runtime/kernel-78c02d91-cf06-472a-89e6-ad63b74a2fcb.json'] 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59293 220s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51475 220s INFO NotebookApp:kernelmanager.py:179 Kernel started: 78c02d91-cf06-472a-89e6-ad63b74a2fcb, name: python3 220s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpece3fxce/notebooks/foo'} 220s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.040000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/97a2f72e-9e39-4d0d-bd6e-7918cc3eec24 (::1) 0.650000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.000000ms 220s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 220s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78c02d91-cf06-472a-89e6-ad63b74a2fcb 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78c02d91-cf06-472a-89e6-ad63b74a2fcb 220s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/97a2f72e-9e39-4d0d-bd6e-7918cc3eec24 (::1) 220s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/97a2f72e-9e39-4d0d-bd6e-7918cc3eec24', version='HTTP/1.1', remote_ip='::1') 220s Traceback (most recent call last): 220s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 220s result = await result 220s ^^^^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 220s future.result() 220s ~~~~~~~~~~~~~^^ 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 220s yield maybe_future(sm.delete_session(session_id)) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 220s yielded = self.gen.throw(exc) 220s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 220s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 220s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 220s value = future.result() 220s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 220s raise self._exception.with_traceback(self._exception_tb) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 220s result = coro.send(None) 220s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 220s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 220s raise km.ready.exception() # type: ignore[misc] 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 220s await kernel_awaitable 220s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 220s result = await obj 220s ^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 220s raise e 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 220s out = await method(self, *args, **kwargs) 220s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 220s await self._async_finish_shutdown(restart=restart) 220s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 220s await asyncio.wait_for( 220s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 220s ) 220s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 220s async with timeouts.timeout(timeout): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^ 220s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 220s raise RuntimeError("Timeout should be used inside a task") 220s RuntimeError: Timeout should be used inside a task 220s WARNING NotebookApp:handlers.py:612 Unhandled error 220s ERROR NotebookApp:log.py:55 { 220s "Host": "localhost:12341", 220s "Accept": "*/*", 220s "User-Agent": "python-requests/2.32.5" 220s } 220s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/97a2f72e-9e39-4d0d-bd6e-7918cc3eec24 (::1) 5.680000ms referer=None 220s --------------------------- Captured stderr teardown --------------------------- 220s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 220s return _run_code(code, main_globals, None, 220s "__main__", mod_spec) 220s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 220s exec(code, run_globals) 220s ~~~~^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 220s from ipykernel import kernelapp as app 220s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 220s from .connect import * # noqa: F403 220s ^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 220s from subprocess import PIPE, Popen 220s File "/usr/lib/python3.13/subprocess.py", line 46, in 220s import locale 220s File "/usr/lib/python3.13/locale.py", line 180, in 220s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 220s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 220s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 220s return _compile(pattern, flags) 220s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 220s p = _compiler.compile(pattern, flags) 220s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 220s code = _code(p, flags) 220s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 220s _compile(code, p.data, flags) 220s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 220s _compile(code, av[2], flags) 220s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 220s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 220s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 220s _compile(code, av[2], flags) 220s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 220s emit(ANY) 220s ~~~~^^^^^ 220s KeyboardInterrupt 220s ---------------------------- Captured log teardown ----------------------------- 220s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1fe340cd-8a6b-4512-b078-7432ca06421e 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 19942397-347c-43e0-876f-ffda81758b06 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88a0bd92-0fce-4285-80c7-f8bae5089046 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dd33ba8-e22a-420e-b65e-fb88bd2c55bf 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78c02d91-cf06-472a-89e6-ad63b74a2fcb 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d4042d05-443f-4300-ab1d-e4818229e2d7 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fdbe356b-6fc4-440e-b2a5-3a66689cf09f 220s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 70d833c1-3561-4824-b0f2-a8abd792a19f 220s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 220s =============================== warnings summary =============================== 220s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 220s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 220s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 220s return LooseVersion(v) >= LooseVersion(check) 220s 220s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 220s services/kernels/tests/test_kernels_api.py: 72 warnings 220s services/sessions/tests/test_sessions_api.py: 106 warnings 220s /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). 220s dt = unaware(*args, **kwargs) 220s 220s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 220s /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 220s pytestmark = pytest.mark.integration_tests 220s 220s services/kernels/tests/test_kernels_api.py: 6 warnings 220s services/sessions/tests/test_sessions_api.py: 6 warnings 220s /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 220s policy = events.get_event_loop_policy() 220s 220s services/kernels/tests/test_kernels_api.py: 24 warnings 220s services/sessions/tests/test_sessions_api.py: 19 warnings 220s /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 220s loop = events.get_event_loop_policy().get_event_loop() 220s 220s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 220s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 220s loop.make_current() 220s 220s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 220s =========================== short test summary info ============================ 220s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 220s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 220s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 220s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 220s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 220s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 220s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 220s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 220s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 220s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 220s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 220s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 220s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 220s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 220s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 220s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 220s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 220s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 220s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 220s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 220s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 220s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 220s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 220s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 220s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 220s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 220s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 220s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 220s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 220s ==== 25 failed, 2 passed, 303 deselected, 238 warnings, 4 errors in 14.65s ===== 220s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 220s *** 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 228s ============================= test session starts ============================== 228s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 228s rootdir: /tmp/autopkgtest.g7xfi7/autopkgtest_tmp 228s plugins: typeguard-4.4.4 228s collected 330 items / 305 deselected / 25 selected 228s run-last-failure: rerun previous 25 failures 228s 231s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 234s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 234s 234s ==================================== ERRORS ==================================== 234s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 234s 234s self = 234s 234s def tearDown(self): 234s for k in self.kern_api.list().json(): 234s > self.kern_api.shutdown(k['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/eafbef55-3b73-4b28-a261-6ab1f1081075 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 234s import json 234s File "/usr/lib/python3.13/json/__init__.py", line 106, in 234s from .decoder import JSONDecoder, JSONDecodeError 234s File "/usr/lib/python3.13/json/decoder.py", line 54, in 234s STRINGCHUNK = re.compile(r'(.*?)(["\\\x00-\x1f])', FLAGS) 234s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 234s return _compile(pattern, flags) 234s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 234s p = _compiler.compile(pattern, flags) 234s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 234s p = _parser.parse(p, flags) 234s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 234s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 234s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 234s itemsappend(_parse(source, state, verbose, nested + 1, 234s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 234s p = _parse_sub(source, state, sub_verbose, nested + 1) 234s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 234s itemsappend(_parse(source, state, verbose, nested + 1, 234s File "/usr/lib/python3.13/re/_parser.py", line 572, in _parse 234s code1 = _class_escape(source, this) 234s File "/usr/lib/python3.13/re/_parser.py", line 311, in _class_escape 234s def _class_escape(source, escape): 234s KeyboardInterrupt 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 234s import jupyter_client 234s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 234s from .asynchronous import AsyncKernelClient 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 234s from .client import AsyncKernelClient # noqa 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 234s import zmq.asyncio 234s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 234s import asyncio 234s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 234s from .base_events import * 234s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 234s import concurrent.futures 234s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 234s from concurrent.futures._base import (FIRST_COMPLETED, 234s ...<9 lines>... 234s as_completed) 234s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 111, in 234s class _AllCompletedWaiter(_Waiter): 234s ...<27 lines>... 234s self._decrement_pending_calls() 234s KeyboardInterrupt 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpi3uplrjb/runtime/kernel-eafbef55-3b73-4b28-a261-6ab1f1081075.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37321 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53139 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: eafbef55-3b73-4b28-a261-6ab1f1081075, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.990000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.620000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpi3uplrjb/runtime/kernel-7f85bf4b-d462-41d7-b126-7c1868eaff88.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47323 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50199 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7f85bf4b-d462-41d7-b126-7c1868eaff88, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 32.240000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7f85bf4b-d462-41d7-b126-7c1868eaff88 234s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7f85bf4b-d462-41d7-b126-7c1868eaff88/interrupt (::1) 5.780000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 234s yield maybe_future(km.restart_kernel(kernel_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 234s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 234s await ensure_async(kernel.restart_kernel(now=now)) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 234s await self._async_shutdown_kernel(now=now, restart=True) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7f85bf4b-d462-41d7-b126-7c1868eaff88/restart (::1) 5.000000ms referer=None 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 7.900000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eafbef55-3b73-4b28-a261-6ab1f1081075 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eafbef55-3b73-4b28-a261-6ab1f1081075 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eafbef55-3b73-4b28-a261-6ab1f1081075 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eafbef55-3b73-4b28-a261-6ab1f1081075', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 234s yielded = ctx_run(next, result) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 234s yield maybe_future(km.shutdown_kernel(kernel_id)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 234s 234s self = 234s 234s def tearDown(self): 234s for k in self.kern_api.list().json(): 234s > self.kern_api.shutdown(k['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9e9af0db-3c5c-41cf-9988-a80527e9fd9a 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 234s import jupyter_client 234s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 234s from .asynchronous import AsyncKernelClient 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 234s from .client import AsyncKernelClient # noqa 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 12, in 234s from ..channels import AsyncZMQSocketChannel, HBChannel 234s File "/usr/lib/python3/dist-packages/jupyter_client/channels.py", line 17, in 234s from .session import Session 234s File "/usr/lib/python3/dist-packages/jupyter_client/session.py", line 47, in 234s from traitlets.config.configurable import Configurable, LoggingConfigurable 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1115, in get_code 234s File "", line 1214, in get_data 234s KeyboardInterrupt 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 234s from pathlib import Path 234s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 234s from ._local import * 234s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 234s import warnings 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1152, in get_code 234s File "", line 781, in _compile_bytecode 234s KeyboardInterrupt 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzt46o22v/runtime/kernel-9e9af0db-3c5c-41cf-9988-a80527e9fd9a.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51341 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46703 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9e9af0db-3c5c-41cf-9988-a80527e9fd9a, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.620000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.070000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzt46o22v/runtime/kernel-95b846e0-8d2e-41b7-a8eb-be6dc379ae7c.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56315 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45229 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 95b846e0-8d2e-41b7-a8eb-be6dc379ae7c, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.280000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 28.570000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 95b846e0-8d2e-41b7-a8eb-be6dc379ae7c 234s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/95b846e0-8d2e-41b7-a8eb-be6dc379ae7c/interrupt (::1) 0.760000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 234s yield maybe_future(km.restart_kernel(kernel_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 234s result = coro.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 234s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 234s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 234s yield self # This tells Task to wait for completion. 234s ^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 234s await ensure_async(kernel.restart_kernel(now=now)) 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 234s await self._async_shutdown_kernel(now=now, restart=True) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/95b846e0-8d2e-41b7-a8eb-be6dc379ae7c/restart (::1) 43.760000ms referer=None 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.210000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e9af0db-3c5c-41cf-9988-a80527e9fd9a 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e9af0db-3c5c-41cf-9988-a80527e9fd9a 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9e9af0db-3c5c-41cf-9988-a80527e9fd9a (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9e9af0db-3c5c-41cf-9988-a80527e9fd9a', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 234s yield maybe_future(km.shutdown_kernel(kernel_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9e9af0db-3c5c-41cf-9988-a80527e9fd9a (::1) 11.550000ms referer=None 234s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb8iy1h0a/runtime/kernel-e2420bac-39f6-44fc-b4eb-3d38f6262995.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53913 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45537 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: e2420bac-39f6-44fc-b4eb-3d38f6262995, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 64.840000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.910000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 327b544b-ce93-419d-9a9e-4b9f28d37fff 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 327b544b-ce93-419d-9a9e-4b9f28d37fff 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e828e132-25fa-4df6-b639-b575e03abadf (::1) 11.380000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e2420bac-39f6-44fc-b4eb-3d38f6262995 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e2420bac-39f6-44fc-b4eb-3d38f6262995 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 234s yielded = self.gen.send(value) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 (::1) 8.840000ms referer=None 234s --------------------------- Captured stderr teardown --------------------------- 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 234s import jupyter_client 234s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 234s from .asynchronous import AsyncKernelClient 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 234s from .client import AsyncKernelClient # noqa 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 234s import zmq.asyncio 234s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 234s from zmq import backend 234s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 234s _ns = select_backend(first) 234s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 234s mod = import_module(name) 234s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 234s return _bootstrap._gcd_import(name[level:], package, level) 234s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "", line 1387, in _gcd_import 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1115, in get_code 234s File "", line 1214, in get_data 234s KeyboardInterrupt 234s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgno35qbe/runtime/kernel-b086ce7e-6c48-40a1-b583-75eeb7d1569c.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46945 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59503 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: b086ce7e-6c48-40a1-b583-75eeb7d1569c, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.110000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.560000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49a4f9c0-be71-4d13-b65d-abd1fb0f0c1c 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49a4f9c0-be71-4d13-b65d-abd1fb0f0c1c 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bdc2f60d-fc1b-42e1-8e30-b9f06a09e65f (::1) 0.500000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b086ce7e-6c48-40a1-b583-75eeb7d1569c 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b086ce7e-6c48-40a1-b583-75eeb7d1569c 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s =================================== FAILURES =================================== 234s ______________________ KernelAPITest.test_default_kernel _______________________ 234s 234s self = 234s 234s def tearDown(self): 234s for k in self.kern_api.list().json(): 234s > self.kern_api.shutdown(k['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9b34a5f3-eb77-4456-8696-8734fb3c03ae 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log setup ------------------------------ 234s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpi3uplrjb/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpi3uplrjb/etc/jupyter'] for config files 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpi3uplrjb/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpi3uplrjb/config 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpi3uplrjb/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpi3uplrjb/config 234s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpi3uplrjb/notebooks 234s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 234s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 234s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 234s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 234s WARNING NotebookApp:handlers.py:612 Forbidden 234s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 5.170000ms referer=None 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpi3uplrjb/runtime/kernel-9b34a5f3-eb77-4456-8696-8734fb3c03ae.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35587 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39893 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9b34a5f3-eb77-4456-8696-8734fb3c03ae, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 125.210000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9b34a5f3-eb77-4456-8696-8734fb3c03ae 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9b34a5f3-eb77-4456-8696-8734fb3c03ae 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9b34a5f3-eb77-4456-8696-8734fb3c03ae (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9b34a5f3-eb77-4456-8696-8734fb3c03ae', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 234s yielded = ctx_run(next, result) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 234s yield maybe_future(km.shutdown_kernel(kernel_id)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9b34a5f3-eb77-4456-8696-8734fb3c03ae (::1) 24.620000ms referer=None 234s --------------------------- Captured stderr teardown --------------------------- 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 234s import jupyter_client 234s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 234s from .asynchronous import AsyncKernelClient 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 234s from .client import AsyncKernelClient # noqa 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 234s import zmq.asyncio 234s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 234s from zmq import backend 234s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 234s _ns = select_backend(first) 234s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 234s mod = import_module(name) 234s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 234s return _bootstrap._gcd_import(name[level:], package, level) 234s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 234s from . import _zmq 234s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 234s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 359, in 234s class Event(IntFlag): 234s ...<59 lines>... 234s ALL_V2 = ALL_V1 | PIPES_STATS 234s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 385, in Event 234s PROTOCOL_ERROR_ZMTP_INVALID_METADATA = 0x10000018 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3.13/enum.py", line 460, in __setitem__ 234s super().__setitem__(key, value) 234s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 234s KeyboardInterrupt 234s ______________________ KernelAPITest.test_kernel_handler _______________________ 234s 234s self = 234s 234s def test_kernel_handler(self): 234s # GET kernel with given id 234s kid = self.kern_api.start().json()['id'] 234s r = self.kern_api.get(kid) 234s kern1 = r.json() 234s self.assertEqual(r.status_code, 200) 234s assert isinstance(kern1, dict) 234s self.assertIn('id', kern1) 234s self.assertEqual(kern1['id'], kid) 234s 234s # Request a bad kernel id and check that a JSON 234s # message is returned! 234s bad_id = '111-111-111-111-111' 234s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 234s self.kern_api.get(bad_id) 234s 234s # DELETE kernel with id 234s > r = self.kern_api.shutdown(kid) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 234s from pathlib import Path 234s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 234s from ._abc import * 234s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 234s from glob import _Globber, _no_recurse_symlinks 234s File "/usr/lib/python3.13/glob.py", line 5, in 234s import re 234s File "/usr/lib/python3.13/re/__init__.py", line 126, in 234s from . import _compiler, _parser 234s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 234s from . import _parser 234s File "/usr/lib/python3.13/re/_parser.py", line 15, in 234s from ._constants import * 234s File "/usr/lib/python3.13/re/_constants.py", line 23, in 234s class PatternError(Exception): 234s ...<29 lines>... 234s super().__init__(msg) 234s File "/usr/lib/python3.13/re/_constants.py", line 23, in PatternError 234s class PatternError(Exception): 234s 234s KeyboardInterrupt 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpi3uplrjb/runtime/kernel-e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36219 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42587 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.830000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3 (::1) 1.460000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s 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 234s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 234s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.600000ms referer=None 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 234s yielded = ctx_run(next, result) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 234s yield maybe_future(km.shutdown_kernel(kernel_id)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3 (::1) 14.070000ms referer=None 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.570000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9b34a5f3-eb77-4456-8696-8734fb3c03ae 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9b34a5f3-eb77-4456-8696-8734fb3c03ae 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9b34a5f3-eb77-4456-8696-8734fb3c03ae (::1) 2.100000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e8b49f7c-c9a0-460c-b80c-9e9dfe94f2e3 (::1) 0.650000ms 234s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 234s 234s self = 234s 234s def test_main_kernel_handler(self): 234s # POST request 234s r = self.kern_api.start() 234s kern1 = r.json() 234s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 234s self.assertEqual(r.status_code, 201) 234s self.assertIsInstance(kern1, dict) 234s 234s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 234s expected_csp = '; '.join([ 234s "frame-ancestors 'self'", 234s 'report-uri ' + report_uri, 234s "default-src 'none'" 234s ]) 234s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 234s 234s # GET request 234s r = self.kern_api.list() 234s self.assertEqual(r.status_code, 200) 234s assert isinstance(r.json(), list) 234s self.assertEqual(r.json()[0]['id'], kern1['id']) 234s self.assertEqual(r.json()[0]['name'], kern1['name']) 234s 234s # create another kernel and check that they both are added to the 234s # list of kernels from a GET request 234s kern2 = self.kern_api.start().json() 234s assert isinstance(kern2, dict) 234s r = self.kern_api.list() 234s kernels = r.json() 234s self.assertEqual(r.status_code, 200) 234s assert isinstance(kernels, list) 234s self.assertEqual(len(kernels), 2) 234s 234s # Interrupt a kernel 234s r = self.kern_api.interrupt(kern2['id']) 234s self.assertEqual(r.status_code, 204) 234s 234s # Restart a kernel 234s > r = self.kern_api.restart(kern2['id']) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 234s return self._req('POST', url_path_join(id, 'restart')) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/7f85bf4b-d462-41d7-b126-7c1868eaff88/restart 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 234s import json 234s File "/usr/lib/python3.13/json/__init__.py", line 106, in 234s from .decoder import JSONDecoder, JSONDecodeError 234s File "/usr/lib/python3.13/json/decoder.py", line 54, in 234s STRINGCHUNK = re.compile(r'(.*?)(["\\\x00-\x1f])', FLAGS) 234s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 234s return _compile(pattern, flags) 234s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 234s p = _compiler.compile(pattern, flags) 234s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 234s p = _parser.parse(p, flags) 234s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 234s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 234s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 234s itemsappend(_parse(source, state, verbose, nested + 1, 234s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 234s p = _parse_sub(source, state, sub_verbose, nested + 1) 234s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 234s itemsappend(_parse(source, state, verbose, nested + 1, 234s File "/usr/lib/python3.13/re/_parser.py", line 572, in _parse 234s code1 = _class_escape(source, this) 234s File "/usr/lib/python3.13/re/_parser.py", line 311, in _class_escape 234s def _class_escape(source, escape): 234s KeyboardInterrupt 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 234s import jupyter_client 234s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 234s from .asynchronous import AsyncKernelClient 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 234s from .client import AsyncKernelClient # noqa 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 234s import zmq.asyncio 234s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 234s import asyncio 234s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 234s from .base_events import * 234s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 234s import concurrent.futures 234s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 234s from concurrent.futures._base import (FIRST_COMPLETED, 234s ...<9 lines>... 234s as_completed) 234s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 111, in 234s class _AllCompletedWaiter(_Waiter): 234s ...<27 lines>... 234s self._decrement_pending_calls() 234s KeyboardInterrupt 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpi3uplrjb/runtime/kernel-eafbef55-3b73-4b28-a261-6ab1f1081075.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37321 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53139 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: eafbef55-3b73-4b28-a261-6ab1f1081075, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.990000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.620000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpi3uplrjb/runtime/kernel-7f85bf4b-d462-41d7-b126-7c1868eaff88.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47323 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50199 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7f85bf4b-d462-41d7-b126-7c1868eaff88, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 32.240000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 7f85bf4b-d462-41d7-b126-7c1868eaff88 234s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/7f85bf4b-d462-41d7-b126-7c1868eaff88/interrupt (::1) 5.780000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 234s yield maybe_future(km.restart_kernel(kernel_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 234s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 234s await ensure_async(kernel.restart_kernel(now=now)) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 234s await self._async_shutdown_kernel(now=now, restart=True) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/7f85bf4b-d462-41d7-b126-7c1868eaff88/restart (::1) 5.000000ms referer=None 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 7.900000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eafbef55-3b73-4b28-a261-6ab1f1081075 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eafbef55-3b73-4b28-a261-6ab1f1081075 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eafbef55-3b73-4b28-a261-6ab1f1081075 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eafbef55-3b73-4b28-a261-6ab1f1081075', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 234s yielded = ctx_run(next, result) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 234s yield maybe_future(km.shutdown_kernel(kernel_id)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ________________________ KernelAPITest.test_no_kernels _________________________ 234s 234s self = 234s 234s def test_no_kernels(self): 234s """Make sure there are no kernels running at the start""" 234s kernels = self.kern_api.list().json() 234s > self.assertEqual(kernels, []) 234s E AssertionError: Lists differ: [{'id': 'eafbef55-3b73-4b28-a261-6ab1f1081[281 chars]: 0}] != [] 234s E 234s E First list contains 2 additional elements. 234s E First extra element 0: 234s E {'id': 'eafbef55-3b73-4b28-a261-6ab1f1081075', 'name': 'python3', 'last_activity': '2026-02-02T09:04:29.742623Z', 'execution_state': 'starting', 'connections': 0} 234s E 234s E + [] 234s E - [{'connections': 0, 234s E - 'execution_state': 'starting', 234s E - 'id': 'eafbef55-3b73-4b28-a261-6ab1f1081075', 234s E - 'last_activity': '2026-02-02T09:04:29.742623Z', 234s E - 'name': 'python3'}, 234s E - {'connections': 0, 234s E - 'execution_state': 'starting', 234s E - 'id': '7f85bf4b-d462-41d7-b126-7c1868eaff88', 234s E - 'last_activity': '2026-02-02T09:04:29.765358Z', 234s E - 'name': 'python3'}] 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eafbef55-3b73-4b28-a261-6ab1f1081075 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eafbef55-3b73-4b28-a261-6ab1f1081075 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/eafbef55-3b73-4b28-a261-6ab1f1081075 (::1) 0.620000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7f85bf4b-d462-41d7-b126-7c1868eaff88 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7f85bf4b-d462-41d7-b126-7c1868eaff88 234s ---------------------------- Captured log teardown ----------------------------- 234s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 234s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 234s _____________________ AsyncKernelAPITest.test_connections ______________________ 234s 234s self = 234s 234s def tearDown(self): 234s for k in self.kern_api.list().json(): 234s > self.kern_api.shutdown(k['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log setup ------------------------------ 234s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpzt46o22v/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpzt46o22v/etc/jupyter'] for config files 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzt46o22v/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzt46o22v/config 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzt46o22v/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzt46o22v/config 234s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpzt46o22v/notebooks 234s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 234s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 234s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 234s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 234s WARNING NotebookApp:handlers.py:612 Forbidden 234s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.510000ms referer=None 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzt46o22v/runtime/kernel-21ec9866-3c69-4619-ad42-de96babd6340.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34417 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53473 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 21ec9866-3c69-4619-ad42-de96babd6340, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.710000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340 (::1) 4.620000ms 234s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340/channels 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 234s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52407 234s DEBUG NotebookApp:kernelmanager.py:423 activity on 21ec9866-3c69-4619-ad42-de96babd6340: status (starting) 234s DEBUG NotebookApp:kernelmanager.py:423 activity on 21ec9866-3c69-4619-ad42-de96babd6340: status (busy) 234s DEBUG NotebookApp:kernelmanager.py:423 activity on 21ec9866-3c69-4619-ad42-de96babd6340: status (idle) 234s 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/'}]} 234s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 21ec9866-3c69-4619-ad42-de96babd6340) to 5.4 (client). 234s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340/channels (::1) 1441.180000ms 234s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340/channels 234s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53473 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52407 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34417 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54497 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52407 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34417 234s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 234s Setting websocket_ping_timeout=30000 234s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340 (::1) 1.650000ms 234s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:kernelmanager.py:423 activity on 21ec9866-3c69-4619-ad42-de96babd6340: status (busy) 234s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:kernelmanager.py:423 activity on 21ec9866-3c69-4619-ad42-de96babd6340: status (busy) 234s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:kernelmanager.py:423 activity on 21ec9866-3c69-4619-ad42-de96babd6340: status (idle) 234s DEBUG NotebookApp:kernelmanager.py:423 activity on 21ec9866-3c69-4619-ad42-de96babd6340: status (idle) 234s DEBUG NotebookApp:handlers.py:579 Websocket closed 21ec9866-3c69-4619-ad42-de96babd6340:a6b96245-8b760c38811b30ce9c8222f1 234s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 21ec9866-3c69-4619-ad42-de96babd6340:a6b96245-8b760c38811b30ce9c8222f1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 21ec9866-3c69-4619-ad42-de96babd6340:iopub 234s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 21ec9866-3c69-4619-ad42-de96babd6340:iopub 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 21ec9866-3c69-4619-ad42-de96babd6340:iopub 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340 (::1) 0.490000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340 (::1) 0.850000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 21ec9866-3c69-4619-ad42-de96babd6340 234s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 21ec9866-3c69-4619-ad42-de96babd6340:a6b96245-8b760c38811b30ce9c8222f1 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 21ec9866-3c69-4619-ad42-de96babd6340 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 234s yield maybe_future(km.shutdown_kernel(kernel_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340 (::1) 5.400000ms referer=None 234s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 234s 234s self = 234s 234s def tearDown(self): 234s for k in self.kern_api.list().json(): 234s > self.kern_api.shutdown(k['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ec265477-b8d2-48c7-b267-cdca76e3d709 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 234s from typing import TYPE_CHECKING, Any 234s File "/usr/lib/python3.13/typing.py", line 1726, in 234s class _CallableType(_SpecialGenericAlias, _root=True): 234s ...<29 lines>... 234s return self.copy_with(params) 234s File "/usr/lib/python3.13/typing.py", line 1745, in _CallableType 234s @_tp_cache 234s ^^^^^^^^^ 234s File "/usr/lib/python3.13/typing.py", line 436, in _tp_cache 234s return decorator(func) 234s File "/usr/lib/python3.13/typing.py", line 415, in decorator 234s def decorator(func): 234s 234s KeyboardInterrupt 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzt46o22v/runtime/kernel-ec265477-b8d2-48c7-b267-cdca76e3d709.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34629 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41715 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec265477-b8d2-48c7-b267-cdca76e3d709, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.030000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.640000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 21ec9866-3c69-4619-ad42-de96babd6340 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 21ec9866-3c69-4619-ad42-de96babd6340 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/21ec9866-3c69-4619-ad42-de96babd6340 (::1) 0.660000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec265477-b8d2-48c7-b267-cdca76e3d709 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec265477-b8d2-48c7-b267-cdca76e3d709 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ec265477-b8d2-48c7-b267-cdca76e3d709 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ec265477-b8d2-48c7-b267-cdca76e3d709', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 234s yield maybe_future(km.shutdown_kernel(kernel_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ec265477-b8d2-48c7-b267-cdca76e3d709 (::1) 9.440000ms referer=None 234s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 234s 234s self = 234s 234s def test_kernel_handler(self): 234s # GET kernel with given id 234s kid = self.kern_api.start().json()['id'] 234s r = self.kern_api.get(kid) 234s kern1 = r.json() 234s self.assertEqual(r.status_code, 200) 234s assert isinstance(kern1, dict) 234s self.assertIn('id', kern1) 234s self.assertEqual(kern1['id'], kid) 234s 234s # Request a bad kernel id and check that a JSON 234s # message is returned! 234s bad_id = '111-111-111-111-111' 234s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 234s self.kern_api.get(bad_id) 234s 234s # DELETE kernel with id 234s > r = self.kern_api.shutdown(kid) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f2369caa-72be-4879-922f-9a0f2804c259 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 234s from pathlib import Path 234s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 234s from ._abc import * 234s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 234s from glob import _Globber, _no_recurse_symlinks 234s File "/usr/lib/python3.13/glob.py", line 5, in 234s import re 234s File "/usr/lib/python3.13/re/__init__.py", line 126, in 234s from . import _compiler, _parser 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 921, in _load_unlocked 234s File "", line 818, in module_from_spec 234s File "", line 48, in _new_module 234s KeyboardInterrupt 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzt46o22v/runtime/kernel-f2369caa-72be-4879-922f-9a0f2804c259.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60889 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60689 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: f2369caa-72be-4879-922f-9a0f2804c259, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.820000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f2369caa-72be-4879-922f-9a0f2804c259 (::1) 0.570000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s 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 234s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 234s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 19.770000ms referer=None 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f2369caa-72be-4879-922f-9a0f2804c259 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f2369caa-72be-4879-922f-9a0f2804c259 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f2369caa-72be-4879-922f-9a0f2804c259 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f2369caa-72be-4879-922f-9a0f2804c259', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 234s yield maybe_future(km.shutdown_kernel(kernel_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f2369caa-72be-4879-922f-9a0f2804c259 (::1) 12.440000ms referer=None 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 5.700000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec265477-b8d2-48c7-b267-cdca76e3d709 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec265477-b8d2-48c7-b267-cdca76e3d709 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ec265477-b8d2-48c7-b267-cdca76e3d709 (::1) 1.830000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f2369caa-72be-4879-922f-9a0f2804c259 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f2369caa-72be-4879-922f-9a0f2804c259 234s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 234s 234s self = 234s 234s def test_main_kernel_handler(self): 234s # POST request 234s r = self.kern_api.start() 234s kern1 = r.json() 234s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 234s self.assertEqual(r.status_code, 201) 234s self.assertIsInstance(kern1, dict) 234s 234s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 234s expected_csp = '; '.join([ 234s "frame-ancestors 'self'", 234s 'report-uri ' + report_uri, 234s "default-src 'none'" 234s ]) 234s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 234s 234s # GET request 234s r = self.kern_api.list() 234s self.assertEqual(r.status_code, 200) 234s assert isinstance(r.json(), list) 234s self.assertEqual(r.json()[0]['id'], kern1['id']) 234s self.assertEqual(r.json()[0]['name'], kern1['name']) 234s 234s # create another kernel and check that they both are added to the 234s # list of kernels from a GET request 234s kern2 = self.kern_api.start().json() 234s assert isinstance(kern2, dict) 234s r = self.kern_api.list() 234s kernels = r.json() 234s self.assertEqual(r.status_code, 200) 234s assert isinstance(kernels, list) 234s self.assertEqual(len(kernels), 2) 234s 234s # Interrupt a kernel 234s r = self.kern_api.interrupt(kern2['id']) 234s self.assertEqual(r.status_code, 204) 234s 234s # Restart a kernel 234s > r = self.kern_api.restart(kern2['id']) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 234s return self._req('POST', url_path_join(id, 'restart')) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/95b846e0-8d2e-41b7-a8eb-be6dc379ae7c/restart 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 234s import jupyter_client 234s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 234s from .asynchronous import AsyncKernelClient 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 234s from .client import AsyncKernelClient # noqa 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 12, in 234s from ..channels import AsyncZMQSocketChannel, HBChannel 234s File "/usr/lib/python3/dist-packages/jupyter_client/channels.py", line 17, in 234s from .session import Session 234s File "/usr/lib/python3/dist-packages/jupyter_client/session.py", line 47, in 234s from traitlets.config.configurable import Configurable, LoggingConfigurable 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1115, in get_code 234s File "", line 1214, in get_data 234s KeyboardInterrupt 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 234s from pathlib import Path 234s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 234s from ._local import * 234s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 234s import warnings 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1152, in get_code 234s File "", line 781, in _compile_bytecode 234s KeyboardInterrupt 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzt46o22v/runtime/kernel-9e9af0db-3c5c-41cf-9988-a80527e9fd9a.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51341 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46703 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9e9af0db-3c5c-41cf-9988-a80527e9fd9a, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.620000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.070000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzt46o22v/runtime/kernel-95b846e0-8d2e-41b7-a8eb-be6dc379ae7c.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56315 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45229 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 95b846e0-8d2e-41b7-a8eb-be6dc379ae7c, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.280000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 28.570000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 95b846e0-8d2e-41b7-a8eb-be6dc379ae7c 234s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/95b846e0-8d2e-41b7-a8eb-be6dc379ae7c/interrupt (::1) 0.760000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 234s yield maybe_future(km.restart_kernel(kernel_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 234s result = coro.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 234s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 234s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 234s yield self # This tells Task to wait for completion. 234s ^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 234s await ensure_async(kernel.restart_kernel(now=now)) 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 234s await self._async_shutdown_kernel(now=now, restart=True) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/95b846e0-8d2e-41b7-a8eb-be6dc379ae7c/restart (::1) 43.760000ms referer=None 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.210000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e9af0db-3c5c-41cf-9988-a80527e9fd9a 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e9af0db-3c5c-41cf-9988-a80527e9fd9a 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9e9af0db-3c5c-41cf-9988-a80527e9fd9a (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9e9af0db-3c5c-41cf-9988-a80527e9fd9a', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 234s yield maybe_future(km.shutdown_kernel(kernel_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9e9af0db-3c5c-41cf-9988-a80527e9fd9a (::1) 11.550000ms referer=None 234s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 234s 234s self = 234s 234s def test_no_kernels(self): 234s """Make sure there are no kernels running at the start""" 234s kernels = self.kern_api.list().json() 234s > self.assertEqual(kernels, []) 234s E AssertionError: Lists differ: [{'id': '9e9af0db-3c5c-41cf-9988-a80527e9f[281 chars]: 0}] != [] 234s E 234s E First list contains 2 additional elements. 234s E First extra element 0: 234s E {'id': '9e9af0db-3c5c-41cf-9988-a80527e9fd9a', 'name': 'python3', 'last_activity': '2026-02-02T09:04:32.102595Z', 'execution_state': 'starting', 'connections': 0} 234s E 234s E + [] 234s E - [{'connections': 0, 234s E - 'execution_state': 'starting', 234s E - 'id': '9e9af0db-3c5c-41cf-9988-a80527e9fd9a', 234s E - 'last_activity': '2026-02-02T09:04:32.102595Z', 234s E - 'name': 'python3'}, 234s E - {'connections': 0, 234s E - 'execution_state': 'starting', 234s E - 'id': '95b846e0-8d2e-41b7-a8eb-be6dc379ae7c', 234s E - 'last_activity': '2026-02-02T09:04:32.122148Z', 234s E - 'name': 'python3'}] 234s 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.230000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.770000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9e9af0db-3c5c-41cf-9988-a80527e9fd9a 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e9af0db-3c5c-41cf-9988-a80527e9fd9a 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9e9af0db-3c5c-41cf-9988-a80527e9fd9a (::1) 3.870000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 95b846e0-8d2e-41b7-a8eb-be6dc379ae7c 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 95b846e0-8d2e-41b7-a8eb-be6dc379ae7c 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/95b846e0-8d2e-41b7-a8eb-be6dc379ae7c (::1) 2.010000ms 234s ---------------------------- Captured log teardown ----------------------------- 234s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec265477-b8d2-48c7-b267-cdca76e3d709 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9e9af0db-3c5c-41cf-9988-a80527e9fd9a 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 21ec9866-3c69-4619-ad42-de96babd6340 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f2369caa-72be-4879-922f-9a0f2804c259 234s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 234s __________________________ SessionAPITest.test_create __________________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2dcb8924-2b8b-4e20-baf0-aa70cb6c155c 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log setup ------------------------------ 234s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpb8iy1h0a/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpb8iy1h0a/etc/jupyter'] for config files 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpb8iy1h0a/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpb8iy1h0a/config 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpb8iy1h0a/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpb8iy1h0a/config 234s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpb8iy1h0a/notebooks 234s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 234s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 234s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 234s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 234s WARNING NotebookApp:handlers.py:612 Forbidden 234s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 2.680000ms referer=None 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 234s import jupyter_client 234s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 234s from .asynchronous import AsyncKernelClient 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 234s from .client import AsyncKernelClient # noqa 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 234s import zmq.asyncio 234s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 234s import asyncio 234s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 234s from .base_events import * 234s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 234s import concurrent.futures 234s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 234s from concurrent.futures._base import (FIRST_COMPLETED, 234s ...<9 lines>... 234s as_completed) 234s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 234s import logging 234s File "/usr/lib/python3.13/logging/__init__.py", line 444, in 234s class PercentStyle(object): 234s ...<29 lines>... 234s raise ValueError('Formatting field not found in record: %s' % e) 234s File "/usr/lib/python3.13/logging/__init__.py", line 449, in PercentStyle 234s validation_pattern = re.compile(r'%\(\w+\)[#0+ -]*(\*|\d+)?(\.(\*|\d+))?[diouxefgcrsa%]', re.I) 234s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 234s return _compile(pattern, flags) 234s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 234s p = _compiler.compile(pattern, flags) 234s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 234s p = _parser.parse(p, flags) 234s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 234s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 234s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 234s itemsappend(_parse(source, state, verbose, nested + 1, 234s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s not nested and not items)) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 234s p = _parse_sub(source, state, sub_verbose, nested + 1) 234s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 234s itemsappend(_parse(source, state, verbose, nested + 1, 234s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s not nested and not items)) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 234s p = _parse_sub(source, state, sub_verbose, nested + 1) 234s File "/usr/lib/python3.13/re/_parser.py", line 493, in _parse_sub 234s if len(item) != 1: 234s ~~~^^^^^^ 234s File "/usr/lib/python3.13/re/_parser.py", line 163, in __len__ 234s def __len__(self): 234s 234s KeyboardInterrupt 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 19.810000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb8iy1h0a/runtime/kernel-bb027e11-a57f-4549-bfd3-525591ce3b5f.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53689 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60271 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: bb027e11-a57f-4549-bfd3-525591ce3b5f, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpb8iy1h0a/notebooks/foo'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 42.050000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.570000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/2dcb8924-2b8b-4e20-baf0-aa70cb6c155c (::1) 0.610000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.670000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bb027e11-a57f-4549-bfd3-525591ce3b5f 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bb027e11-a57f-4549-bfd3-525591ce3b5f 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2dcb8924-2b8b-4e20-baf0-aa70cb6c155c (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2dcb8924-2b8b-4e20-baf0-aa70cb6c155c', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 234s yielded = self.gen.send(value) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/2dcb8924-2b8b-4e20-baf0-aa70cb6c155c (::1) 24.090000ms referer=None 234s __________________ SessionAPITest.test_create_console_session __________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ce36ea89-abcd-411f-9f93-2187cb340bca 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 234s import jupyter_client 234s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 234s from .asynchronous import AsyncKernelClient 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 234s from .client import AsyncKernelClient # noqa 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 234s import zmq.asyncio 234s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 234s from zmq import sugar 234s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 234s from zmq.sugar import context, frame, poll, socket, tracker, version 234s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 234s from .socket import Socket, SyncSocket 234s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 35, in 234s from .poll import Poller 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1152, in get_code 234s File "", line 781, in _compile_bytecode 234s KeyboardInterrupt 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb8iy1h0a/runtime/kernel-4b3e7cd8-7f0e-440f-8e4b-4b5732b07b7a.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33851 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44165 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4b3e7cd8-7f0e-440f-8e4b-4b5732b07b7a, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpb8iy1h0a/notebooks/foo'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 72.160000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.730000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bb027e11-a57f-4549-bfd3-525591ce3b5f 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bb027e11-a57f-4549-bfd3-525591ce3b5f 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2dcb8924-2b8b-4e20-baf0-aa70cb6c155c (::1) 2.410000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4b3e7cd8-7f0e-440f-8e4b-4b5732b07b7a 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b3e7cd8-7f0e-440f-8e4b-4b5732b07b7a 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ce36ea89-abcd-411f-9f93-2187cb340bca (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ce36ea89-abcd-411f-9f93-2187cb340bca', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 234s yielded = self.gen.send(value) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ____________________ SessionAPITest.test_create_deprecated _____________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4c6e3182-27f1-4794-9196-1ada64598aa5 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb8iy1h0a/runtime/kernel-ba4095aa-7426-44ac-acd6-f56c2db6e412.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53181 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53965 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: ba4095aa-7426-44ac-acd6-f56c2db6e412, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpb8iy1h0a/notebooks/foo'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 43.190000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.620000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4b3e7cd8-7f0e-440f-8e4b-4b5732b07b7a 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4b3e7cd8-7f0e-440f-8e4b-4b5732b07b7a 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ce36ea89-abcd-411f-9f93-2187cb340bca (::1) 3.470000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ba4095aa-7426-44ac-acd6-f56c2db6e412 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba4095aa-7426-44ac-acd6-f56c2db6e412 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4c6e3182-27f1-4794-9196-1ada64598aa5 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4c6e3182-27f1-4794-9196-1ada64598aa5', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 234s yielded = self.gen.send(value) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ___________________ SessionAPITest.test_create_file_session ____________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e828e132-25fa-4df6-b639-b575e03abadf 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 234s from subprocess import PIPE, Popen 234s File "/usr/lib/python3.13/subprocess.py", line 49, in 234s import signal 234s File "/usr/lib/python3.13/signal.py", line 19, in 234s _IntEnum._convert_( 234s ~~~~~~~~~~~~~~~~~~^ 234s 'Sigmasks', __name__, 234s ^^^^^^^^^^^^^^^^^^^^^ 234s lambda name: name in ('SIG_BLOCK', 'SIG_UNBLOCK', 'SIG_SETMASK')) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3.13/enum.py", line 928, in _convert_ 234s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 234s File "/usr/lib/python3.13/enum.py", line 1805, in convert_class 234s enum_class = type(cls_name, (etype, ), body, boundary=boundary, _simple=True) 234s File "/usr/lib/python3.13/enum.py", line 505, in __new__ 234s return super().__new__(metacls, cls, bases, classdict, **kwds) 234s ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s KeyboardInterrupt 234s Traceback (most recent call last): 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb8iy1h0a/runtime/kernel-327b544b-ce93-419d-9a9e-4b9f28d37fff.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38063 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41691 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 327b544b-ce93-419d-9a9e-4b9f28d37fff, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpb8iy1h0a/notebooks/foo'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 27.950000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ba4095aa-7426-44ac-acd6-f56c2db6e412 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba4095aa-7426-44ac-acd6-f56c2db6e412 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4c6e3182-27f1-4794-9196-1ada64598aa5 (::1) 2.340000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 327b544b-ce93-419d-9a9e-4b9f28d37fff 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 327b544b-ce93-419d-9a9e-4b9f28d37fff 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e828e132-25fa-4df6-b639-b575e03abadf (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e828e132-25fa-4df6-b639-b575e03abadf', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 234s yielded = self.gen.send(value) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s --------------------------- Captured stderr teardown --------------------------- 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 234s import jupyter_client 234s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 234s from .asynchronous import AsyncKernelClient 234s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 234s from .client import AsyncKernelClient # noqa 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1115, in get_code 234s File "", line 1214, in get_data 234s KeyboardInterrupt 234s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 234s 234s self = 234s 234s def test_create_with_kernel_id(self): 234s # create a new kernel 234s r = self.request('POST', 'api/kernels') 234s r.raise_for_status() 234s kernel = r.json() 234s 234s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 234s self.assertEqual(resp.status_code, 201) 234s newsession = resp.json() 234s self.assertIn('id', newsession) 234s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 234s self.assertEqual(newsession['kernel']['id'], kernel['id']) 234s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 234s 234s sessions = self.sess_api.list().json() 234s > self.assertEqual(sessions, [newsession]) 234s E AssertionError: Lists differ: [{'id': 'e828e132-25fa-4df6-b639-b575e03abadf', 'p[553 chars]ne}}] != [{'id': 'a7c58e40-423d-49fe-8050-a85647729a30', 'p[279 chars]ne}}] 234s E 234s E First differing element 0: 234s E {'id': 'e828e132-25fa-4df6-b639-b575e03abadf', 'p[218 chars]: 0}} 234s E {'id': 'a7c58e40-423d-49fe-8050-a85647729a30', 'p[278 chars]one}} 234s E 234s E First list contains 1 additional elements. 234s E First extra element 1: 234s E {'id': 'a7c58e40-423d-49fe-8050-a85647729a30', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'e2420bac-39f6-44fc-b4eb-3d38f6262995', 'name': 'python3', 'last_activity': '2026-02-02T09:04:33.345244Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 234s E 234s E Diff is 830 characters long. Set self.maxDiff to None to see it. 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 234s ----------------------------- Captured stderr call ----------------------------- 234s Traceback (most recent call last): 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb8iy1h0a/runtime/kernel-e2420bac-39f6-44fc-b4eb-3d38f6262995.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53913 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45537 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: e2420bac-39f6-44fc-b4eb-3d38f6262995, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 64.840000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.910000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 327b544b-ce93-419d-9a9e-4b9f28d37fff 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 327b544b-ce93-419d-9a9e-4b9f28d37fff 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e828e132-25fa-4df6-b639-b575e03abadf (::1) 11.380000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e2420bac-39f6-44fc-b4eb-3d38f6262995 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e2420bac-39f6-44fc-b4eb-3d38f6262995 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 234s yielded = self.gen.send(value) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 (::1) 8.840000ms referer=None 234s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ----------------------------- Captured stderr call ----------------------------- 234s Fatal Python error: init_import_site: Failed to import the site module 234s Python runtime state: initialized 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.100000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb8iy1h0a/runtime/kernel-fa527b11-e9f2-450c-a16b-7ad2019380f7.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45919 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39047 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: fa527b11-e9f2-450c-a16b-7ad2019380f7, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.300000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e2420bac-39f6-44fc-b4eb-3d38f6262995 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e2420bac-39f6-44fc-b4eb-3d38f6262995 234s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 (::1) 1.050000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.420000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fa527b11-e9f2-450c-a16b-7ad2019380f7 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fa527b11-e9f2-450c-a16b-7ad2019380f7 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 234s yielded = self.gen.send(value) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s --------------------------- Captured stderr teardown --------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/site.py", line 735, in 234s main() 234s ~~~~^^ 234s File "/usr/lib/python3.13/site.py", line 722, in main 234s known_paths = addsitepackages(known_paths) 234s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 234s addsitedir(sitedir, known_paths) 234s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 234s addpackage(sitedir, name, known_paths) 234s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3.13/site.py", line 213, in addpackage 234s exec(line) 234s ~~~~^^^^^^ 234s File "", line 1, in 234s File "", line 1360, in _find_and_load 234s File "", line 1322, in _find_and_load_unlocked 234s File "", line 1262, in _find_spec 234s File "", line 1556, in find_spec 234s File "", line 1530, in _get_spec 234s File "", line 1633, in find_spec 234s File "", line 1684, in _fill_cache 234s KeyboardInterrupt 234s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.920000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpb8iy1h0a/runtime/kernel-3caf4a44-8b1b-45b9-bd2b-e0208424c809.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55277 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60153 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3caf4a44-8b1b-45b9-bd2b-e0208424c809, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpb8iy1h0a/notebooks/foo'} 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fa527b11-e9f2-450c-a16b-7ad2019380f7 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fa527b11-e9f2-450c-a16b-7ad2019380f7 234s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 (::1) 98.210000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3caf4a44-8b1b-45b9-bd2b-e0208424c809 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3caf4a44-8b1b-45b9-bd2b-e0208424c809 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 234s yielded = self.gen.send(value) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 234s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 234s stopper = ensure_async(km.shutdown_kernel(now, restart)) 234s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 234s return _runner_map[name].run(inner) 234s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 234s return fut.result(None) 234s ~~~~~~~~~~^^^^^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 234s return self.__get_result() 234s ~~~~~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 234s raise self._exception 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a7c58e40-423d-49fe-8050-a85647729a30 (::1) 6.560000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 234s gc.collect() 234s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 234s 234s --------------------------- Captured stderr teardown --------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 234s from subprocess import PIPE, Popen 234s File "/usr/lib/python3.13/subprocess.py", line 51, in 234s import threading 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1115, in get_code 234s File "", line 1215, in get_data 234s KeyboardInterrupt 234s _______________________ AsyncSessionAPITest.test_create ________________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/66b337fd-7137-4d51-a983-29f0b9992687 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log setup ------------------------------ 234s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpgno35qbe/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpgno35qbe/etc/jupyter'] for config files 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgno35qbe/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpgno35qbe/config 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgno35qbe/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 234s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpgno35qbe/config 234s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpgno35qbe/notebooks 234s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 234s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 234s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 234s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 234s WARNING NotebookApp:handlers.py:612 Forbidden 234s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.390000ms referer=None 234s ----------------------------- Captured stderr call ----------------------------- 234s Exception ignored in: .cb at 0x3ff9e3b4720> 234s Traceback (most recent call last): 234s File "", line 445, in cb 234s KeyboardInterrupt: 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.060000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgno35qbe/runtime/kernel-04f62083-26d9-4cc3-9633-663bf50ff7ac.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59855 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60683 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 04f62083-26d9-4cc3-9633-663bf50ff7ac, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgno35qbe/notebooks/foo'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.500000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/66b337fd-7137-4d51-a983-29f0b9992687 (::1) 6.380000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.530000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 04f62083-26d9-4cc3-9633-663bf50ff7ac 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 04f62083-26d9-4cc3-9633-663bf50ff7ac 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/66b337fd-7137-4d51-a983-29f0b9992687 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/66b337fd-7137-4d51-a983-29f0b9992687', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/66b337fd-7137-4d51-a983-29f0b9992687 (::1) 7.760000ms referer=None 234s _______________ AsyncSessionAPITest.test_create_console_session ________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/544845fc-518f-4554-bf86-7e9c785876e9 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgno35qbe/runtime/kernel-6c7c3f6b-1adb-4688-8026-f89673aed9e2.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38343 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51843 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6c7c3f6b-1adb-4688-8026-f89673aed9e2, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgno35qbe/notebooks/foo'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.800000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 04f62083-26d9-4cc3-9633-663bf50ff7ac 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 04f62083-26d9-4cc3-9633-663bf50ff7ac 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/66b337fd-7137-4d51-a983-29f0b9992687 (::1) 7.640000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c7c3f6b-1adb-4688-8026-f89673aed9e2 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c7c3f6b-1adb-4688-8026-f89673aed9e2 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/544845fc-518f-4554-bf86-7e9c785876e9 (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/544845fc-518f-4554-bf86-7e9c785876e9', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s --------------------------- Captured stderr teardown --------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 234s from ipykernel import kernelapp as app 234s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 234s from .connect import * # noqa: F403 234s ^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 234s from subprocess import PIPE, Popen 234s File "/usr/lib/python3.13/subprocess.py", line 132, in 234s class CalledProcessError(SubprocessError): 234s ...<33 lines>... 234s self.output = value 234s KeyboardInterrupt 234s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5005f3ec-d851-47fe-a04c-89fad8b096af 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgno35qbe/runtime/kernel-78eb360a-108b-4869-bc8e-1923b07648cc.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59369 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42879 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 78eb360a-108b-4869-bc8e-1923b07648cc, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgno35qbe/notebooks/foo'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.630000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c7c3f6b-1adb-4688-8026-f89673aed9e2 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c7c3f6b-1adb-4688-8026-f89673aed9e2 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/544845fc-518f-4554-bf86-7e9c785876e9 (::1) 0.590000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78eb360a-108b-4869-bc8e-1923b07648cc 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78eb360a-108b-4869-bc8e-1923b07648cc 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5005f3ec-d851-47fe-a04c-89fad8b096af (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5005f3ec-d851-47fe-a04c-89fad8b096af', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5005f3ec-d851-47fe-a04c-89fad8b096af (::1) 9.280000ms referer=None 234s --------------------------- Captured stderr teardown --------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 234s from pathlib import Path 234s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 234s from ._abc import * 234s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 234s from glob import _Globber, _no_recurse_symlinks 234s File "/usr/lib/python3.13/glob.py", line 5, in 234s import re 234s File "", line 1358, in _find_and_load 234s KeyboardInterrupt 234s _________________ AsyncSessionAPITest.test_create_file_session _________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bdc2f60d-fc1b-42e1-8e30-b9f06a09e65f 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgno35qbe/runtime/kernel-49a4f9c0-be71-4d13-b65d-abd1fb0f0c1c.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56025 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42483 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 49a4f9c0-be71-4d13-b65d-abd1fb0f0c1c, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpgno35qbe/notebooks/foo'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.420000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78eb360a-108b-4869-bc8e-1923b07648cc 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78eb360a-108b-4869-bc8e-1923b07648cc 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5005f3ec-d851-47fe-a04c-89fad8b096af (::1) 0.580000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49a4f9c0-be71-4d13-b65d-abd1fb0f0c1c 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49a4f9c0-be71-4d13-b65d-abd1fb0f0c1c 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bdc2f60d-fc1b-42e1-8e30-b9f06a09e65f (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bdc2f60d-fc1b-42e1-8e30-b9f06a09e65f', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s --------------------------- Captured stderr teardown --------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 234s from pathlib import Path 234s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 234s from ._abc import * 234s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 234s from glob import _Globber, _no_recurse_symlinks 234s File "/usr/lib/python3.13/glob.py", line 6, in 234s import fnmatch 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1115, in get_code 234s File "", line 1215, in get_data 234s KeyboardInterrupt 234s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 234s 234s self = 234s 234s def test_create_with_kernel_id(self): 234s # create a new kernel 234s r = self.request('POST', 'api/kernels') 234s r.raise_for_status() 234s kernel = r.json() 234s 234s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 234s self.assertEqual(resp.status_code, 201) 234s newsession = resp.json() 234s self.assertIn('id', newsession) 234s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 234s self.assertEqual(newsession['kernel']['id'], kernel['id']) 234s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 234s 234s sessions = self.sess_api.list().json() 234s > self.assertEqual(sessions, [newsession]) 234s E AssertionError: Lists differ: [{'id': 'bdc2f60d-fc1b-42e1-8e30-b9f06a09e65f', 'p[553 chars]ne}}] != [{'id': 'e962e5de-99a6-4e51-b583-3f961fdfbc0a', 'p[279 chars]ne}}] 234s E 234s E First differing element 0: 234s E {'id': 'bdc2f60d-fc1b-42e1-8e30-b9f06a09e65f', 'p[218 chars]: 0}} 234s E {'id': 'e962e5de-99a6-4e51-b583-3f961fdfbc0a', 'p[278 chars]one}} 234s E 234s E First list contains 1 additional elements. 234s E First extra element 1: 234s E {'id': 'e962e5de-99a6-4e51-b583-3f961fdfbc0a', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'b086ce7e-6c48-40a1-b583-75eeb7d1569c', 'name': 'python3', 'last_activity': '2026-02-02T09:04:34.446259Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 234s E 234s E Diff is 830 characters long. Set self.maxDiff to None to see it. 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgno35qbe/runtime/kernel-b086ce7e-6c48-40a1-b583-75eeb7d1569c.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46945 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59503 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: b086ce7e-6c48-40a1-b583-75eeb7d1569c, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.110000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.560000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 49a4f9c0-be71-4d13-b65d-abd1fb0f0c1c 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 49a4f9c0-be71-4d13-b65d-abd1fb0f0c1c 234s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bdc2f60d-fc1b-42e1-8e30-b9f06a09e65f (::1) 0.500000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b086ce7e-6c48-40a1-b583-75eeb7d1569c 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b086ce7e-6c48-40a1-b583-75eeb7d1569c 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.810000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgno35qbe/runtime/kernel-5ecc65ab-196e-4733-9ac7-76e9798f1f7b.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55775 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40025 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5ecc65ab-196e-4733-9ac7-76e9798f1f7b, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.330000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b086ce7e-6c48-40a1-b583-75eeb7d1569c 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b086ce7e-6c48-40a1-b583-75eeb7d1569c 234s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a (::1) 0.770000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ecc65ab-196e-4733-9ac7-76e9798f1f7b 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ecc65ab-196e-4733-9ac7-76e9798f1f7b 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a (::1) 19.740000ms referer=None 234s --------------------------- Captured stderr teardown --------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 234s from pathlib import Path 234s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 234s from ._abc import * 234s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 234s import functools 234s File "/usr/lib/python3.13/functools.py", line 18, in 234s from collections import namedtuple 234s File "", line 1360, in _find_and_load 234s File "", line 1331, in _find_and_load_unlocked 234s File "", line 935, in _load_unlocked 234s File "", line 1019, in exec_module 234s File "", line 1152, in get_code 234s File "", line 781, in _compile_bytecode 234s KeyboardInterrupt 234s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 234s 234s @self.addCleanup 234s def cleanup_sessions(): 234s for session in self.sess_api.list().json(): 234s > self.sess_api.delete(session['id']) 234s 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 234s return self._req('DELETE', id) 234s ^^^^^^^^^^^^^^^^^^^^^^^ 234s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 234s response.raise_for_status() 234s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 234s 234s self = 234s 234s def raise_for_status(self): 234s """Raises :class:`HTTPError`, if one occurred.""" 234s 234s http_error_msg = "" 234s if isinstance(self.reason, bytes): 234s # We attempt to decode utf-8 first because some servers 234s # choose to localize their reason strings. If the string 234s # isn't utf-8, we fall back to iso-8859-1 for all other 234s # encodings. (See PR #3538) 234s try: 234s reason = self.reason.decode("utf-8") 234s except UnicodeDecodeError: 234s reason = self.reason.decode("iso-8859-1") 234s else: 234s reason = self.reason 234s 234s if 400 <= self.status_code < 500: 234s http_error_msg = ( 234s f"{self.status_code} Client Error: {reason} for url: {self.url}" 234s ) 234s 234s elif 500 <= self.status_code < 600: 234s http_error_msg = ( 234s f"{self.status_code} Server Error: {reason} for url: {self.url}" 234s ) 234s 234s if http_error_msg: 234s > raise HTTPError(http_error_msg, response=self) 234s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a 234s 234s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 234s ------------------------------ Captured log call ------------------------------- 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.760000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 234s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpgno35qbe/runtime/kernel-e02a3589-775c-4ff6-9547-b2717312e759.json'] 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36859 234s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54707 234s INFO NotebookApp:kernelmanager.py:179 Kernel started: e02a3589-775c-4ff6-9547-b2717312e759, name: python3 234s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpgno35qbe/notebooks/foo'} 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5ecc65ab-196e-4733-9ac7-76e9798f1f7b 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5ecc65ab-196e-4733-9ac7-76e9798f1f7b 234s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a (::1) 20.820000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.290000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.400000ms 234s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 234s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e02a3589-775c-4ff6-9547-b2717312e759 234s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e02a3589-775c-4ff6-9547-b2717312e759 234s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a (::1) 234s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a', version='HTTP/1.1', remote_ip='::1') 234s Traceback (most recent call last): 234s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 234s result = await result 234s ^^^^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 234s future.result() 234s ~~~~~~~~~~~~~^^ 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 234s yield maybe_future(sm.delete_session(session_id)) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 234s yielded = self.gen.throw(exc) 234s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 234s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 234s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 234s value = future.result() 234s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 234s raise self._exception.with_traceback(self._exception_tb) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 234s result = coro.send(None) 234s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 234s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 234s raise km.ready.exception() # type: ignore[misc] 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 234s await kernel_awaitable 234s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 234s result = await obj 234s ^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 234s raise e 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 234s out = await method(self, *args, **kwargs) 234s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 234s await self._async_finish_shutdown(restart=restart) 234s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 234s await asyncio.wait_for( 234s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 234s ) 234s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 234s async with timeouts.timeout(timeout): 234s ~~~~~~~~~~~~~~~~^^^^^^^^^ 234s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 234s raise RuntimeError("Timeout should be used inside a task") 234s RuntimeError: Timeout should be used inside a task 234s WARNING NotebookApp:handlers.py:612 Unhandled error 234s ERROR NotebookApp:log.py:55 { 234s "Host": "localhost:12341", 234s "Accept": "*/*", 234s "User-Agent": "python-requests/2.32.5" 234s } 234s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e962e5de-99a6-4e51-b583-3f961fdfbc0a (::1) 14.660000ms referer=None 234s --------------------------- Captured stderr teardown --------------------------- 234s Traceback (most recent call last): 234s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 234s return _run_code(code, main_globals, None, 234s "__main__", mod_spec) 234s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 234s exec(code, run_globals) 234s ~~~~^^^^^^^^^^^^^^^^^^^ 234s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 234s from pathlib import Path 234s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 234s from ._abc import * 234s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 234s import functools 234s File "/usr/lib/python3.13/functools.py", line 18, in 234s from collections import namedtuple 234s File "/usr/lib/python3.13/collections/__init__.py", line 1218, in 234s class UserList(_collections_abc.MutableSequence): 234s ...<125 lines>... 234s self.data.extend(other) 234s File "/usr/lib/python3.13/abc.py", line 107, in __new__ 234s _abc_init(cls) 234s ~~~~~~~~~^^^^^ 234s KeyboardInterrupt 234s =============================== warnings summary =============================== 234s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 234s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 234s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 234s return LooseVersion(v) >= LooseVersion(check) 234s 234s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 234s services/kernels/tests/test_kernels_api.py: 72 warnings 234s services/sessions/tests/test_sessions_api.py: 96 warnings 234s /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). 234s dt = unaware(*args, **kwargs) 234s 234s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 234s /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 234s pytestmark = pytest.mark.integration_tests 234s 234s services/kernels/tests/test_kernels_api.py: 6 warnings 234s services/sessions/tests/test_sessions_api.py: 6 warnings 234s /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 234s policy = events.get_event_loop_policy() 234s 234s services/kernels/tests/test_kernels_api.py: 24 warnings 234s services/sessions/tests/test_sessions_api.py: 19 warnings 234s /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 234s loop = events.get_event_loop_policy().get_event_loop() 234s 234s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 234s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 234s loop.make_current() 234s 234s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 234s =========================== short test summary info ============================ 234s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 234s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 234s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 234s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 234s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 234s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 234s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 234s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 234s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 234s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 234s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 234s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 234s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 234s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 234s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 234s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 234s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 234s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 234s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 234s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 234s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 234s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 234s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 234s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 234s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 234s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 234s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 234s ==== 23 failed, 2 passed, 305 deselected, 228 warnings, 4 errors in 15.28s ===== 235s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 235s *** 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 244s ============================= test session starts ============================== 244s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 244s rootdir: /tmp/autopkgtest.g7xfi7/autopkgtest_tmp 244s plugins: typeguard-4.4.4 244s collected 330 items / 307 deselected / 23 selected 244s run-last-failure: rerun previous 23 failures 244s 249s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 252s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 252s 252s ==================================== ERRORS ==================================== 252s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 252s 252s self = 252s 252s def tearDown(self): 252s for k in self.kern_api.list().json(): 252s > self.kern_api.shutdown(k['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 252s import jupyter_client 252s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 252s from .asynchronous import AsyncKernelClient 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 252s from .client import AsyncKernelClient # noqa 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 252s import zmq.asyncio 252s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 252s from zmq import sugar 252s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 252s from zmq.sugar import context, frame, poll, socket, tracker, version 252s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 252s from .socket import Socket, SyncSocket 252s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 42, in 252s _SocketType = TypeVar("_SocketType", bound="Socket") 252s File "/usr/lib/python3.13/typing.py", line 191, in _type_check 252s arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms) 252s File "/usr/lib/python3.13/typing.py", line 169, in _type_convert 252s return ForwardRef(arg, module=module, is_class=allow_special_forms) 252s File "/usr/lib/python3.13/typing.py", line 1035, in __init__ 252s code = compile(arg_to_compile, '', 'eval') 252s KeyboardInterrupt 252s Traceback (most recent call last): 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx3v5e8zp/runtime/kernel-b3cfa35b-d77c-4b78-b0df-84865bd2b0f5.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34793 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49719 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3cfa35b-d77c-4b78-b0df-84865bd2b0f5, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 46.320000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 6.730000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx3v5e8zp/runtime/kernel-23ba52a1-0697-4c5f-b516-9633f4f91a90.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55995 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57557 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 23ba52a1-0697-4c5f-b516-9633f4f91a90, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 145.470000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 79.840000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 23ba52a1-0697-4c5f-b516-9633f4f91a90 252s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/23ba52a1-0697-4c5f-b516-9633f4f91a90/interrupt (::1) 0.630000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 252s yield maybe_future(km.restart_kernel(kernel_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 252s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 252s await ensure_async(kernel.restart_kernel(now=now)) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 252s await self._async_shutdown_kernel(now=now, restart=True) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/23ba52a1-0697-4c5f-b516-9633f4f91a90/restart (::1) 14.450000ms referer=None 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.570000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b3cfa35b-d77c-4b78-b0df-84865bd2b0f5', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 252s yielded = ctx_run(next, result) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 252s yield maybe_future(km.shutdown_kernel(kernel_id)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s --------------------------- Captured stderr teardown --------------------------- 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 252s import jupyter_client 252s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 9, in 252s from .manager import AsyncKernelManager, KernelManager, run_kernel 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 12, in 252s import uuid 252s File "/usr/lib/python3.13/uuid.py", line 88, in 252s class UUID: 252s ...<271 lines>... 252s return int((self.int >> 76) & 0xf) 252s File "/usr/lib/python3.13/uuid.py", line 303, in UUID 252s @property 252s ^^^^^^^^ 252s KeyboardInterrupt 252s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 252s 252s self = 252s 252s def tearDown(self): 252s for k in self.kern_api.list().json(): 252s > self.kern_api.shutdown(k['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/00eebc28-9f78-44d4-bdea-b628f6da73d6 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 252s from pathlib import Path 252s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 252s from ._abc import * 252s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 252s from glob import _Globber, _no_recurse_symlinks 252s File "/usr/lib/python3.13/glob.py", line 5, in 252s import re 252s File "/usr/lib/python3.13/re/__init__.py", line 125, in 252s import enum 252s File "", line 1360, in _find_and_load 252s File "", line 1322, in _find_and_load_unlocked 252s File "", line 1256, in _find_spec 252s File "", line 1222, in __enter__ 252s KeyboardInterrupt 252s Traceback (most recent call last): 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 252s from subprocess import PIPE, Popen 252s File "/usr/lib/python3.13/subprocess.py", line 46, in 252s import locale 252s File "/usr/lib/python3.13/locale.py", line 180, in 252s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 252s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 252s return _compile(pattern, flags) 252s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 252s p = _compiler.compile(pattern, flags) 252s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 252s p = _parser.parse(p, flags) 252s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 252s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 252s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 252s itemsappend(_parse(source, state, verbose, nested + 1, 252s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 252s p = _parse_sub(source, state, sub_verbose, nested + 1) 252s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 252s itemsappend(_parse(source, state, verbose, nested + 1, 252s File "/usr/lib/python3.13/re/_parser.py", line 543, in _parse 252s code = _escape(source, this, state) 252s File "/usr/lib/python3.13/re/_parser.py", line 373, in _escape 252s code = CATEGORIES.get(escape) 252s KeyboardInterrupt 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ev03dsb/runtime/kernel-00eebc28-9f78-44d4-bdea-b628f6da73d6.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57049 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53467 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 00eebc28-9f78-44d4-bdea-b628f6da73d6, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.280000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ev03dsb/runtime/kernel-fd81146a-461a-49da-b0a5-df52e3f0a989.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47767 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35219 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: fd81146a-461a-49da-b0a5-df52e3f0a989, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.590000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: fd81146a-461a-49da-b0a5-df52e3f0a989 252s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/fd81146a-461a-49da-b0a5-df52e3f0a989/interrupt (::1) 0.420000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 252s yield maybe_future(km.restart_kernel(kernel_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 252s result = coro.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 252s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 252s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 252s yield self # This tells Task to wait for completion. 252s ^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 252s await ensure_async(kernel.restart_kernel(now=now)) 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 252s await self._async_shutdown_kernel(now=now, restart=True) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/fd81146a-461a-49da-b0a5-df52e3f0a989/restart (::1) 50.520000ms referer=None 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00eebc28-9f78-44d4-bdea-b628f6da73d6 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00eebc28-9f78-44d4-bdea-b628f6da73d6 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/00eebc28-9f78-44d4-bdea-b628f6da73d6 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/00eebc28-9f78-44d4-bdea-b628f6da73d6', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 252s yield maybe_future(km.shutdown_kernel(kernel_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/00eebc28-9f78-44d4-bdea-b628f6da73d6 (::1) 6.020000ms referer=None 252s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnztxxcen/runtime/kernel-fb1f3372-2a3d-4bf1-9702-799d300b61a3.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60437 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48559 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: fb1f3372-2a3d-4bf1-9702-799d300b61a3, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.430000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.540000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 32.000000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for def5e308-ecb1-4946-b10a-c8515fca6d48 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: def5e308-ecb1-4946-b10a-c8515fca6d48 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3598a756-87a1-4a13-8fcd-cb34cd6a526e (::1) 0.700000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fb1f3372-2a3d-4bf1-9702-799d300b61a3 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fb1f3372-2a3d-4bf1-9702-799d300b61a3 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 252s yielded = self.gen.send(value) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s --------------------------- Captured stderr teardown --------------------------- 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 252s import jupyter_client 252s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 252s from .asynchronous import AsyncKernelClient 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 252s from .client import AsyncKernelClient # noqa 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 252s import zmq.asyncio 252s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 252s from zmq import backend 252s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 252s _ns = select_backend(first) 252s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 252s mod = import_module(name) 252s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 252s return _bootstrap._gcd_import(name[level:], package, level) 252s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 252s from . import _zmq 252s File "", line 1360, in _find_and_load 252s File "", line 1322, in _find_and_load_unlocked 252s File "", line 1256, in _find_spec 252s File "", line 1226, in __exit__ 252s KeyboardInterrupt 252s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20wfq4mu/runtime/kernel-df9a55ce-021d-4bb0-9995-a7cb1de69bd5.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56721 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48625 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: df9a55ce-021d-4bb0-9995-a7cb1de69bd5, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 38.860000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 6.230000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.620000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c1c0608-bd9e-424f-b085-0b705e564559 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c1c0608-bd9e-424f-b085-0b705e564559 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8c8d4194-5e02-4ed9-bace-8640c6bf9715 (::1) 4.710000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for df9a55ce-021d-4bb0-9995-a7cb1de69bd5 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df9a55ce-021d-4bb0-9995-a7cb1de69bd5 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s =================================== FAILURES =================================== 252s ______________________ KernelAPITest.test_default_kernel _______________________ 252s 252s self = 252s 252s def tearDown(self): 252s for k in self.kern_api.list().json(): 252s > self.kern_api.shutdown(k['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e06bfe15-3f19-4d52-b6eb-bd7abe9619ad 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log setup ------------------------------ 252s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpx3v5e8zp/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpx3v5e8zp/etc/jupyter'] for config files 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpx3v5e8zp/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpx3v5e8zp/config 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpx3v5e8zp/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpx3v5e8zp/config 252s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpx3v5e8zp/notebooks 252s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 252s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 252s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 252s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 252s WARNING NotebookApp:handlers.py:612 Forbidden 252s ------------------------------ Captured log call ------------------------------- 252s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 8.160000ms referer=None 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx3v5e8zp/runtime/kernel-e06bfe15-3f19-4d52-b6eb-bd7abe9619ad.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47083 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33147 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: e06bfe15-3f19-4d52-b6eb-bd7abe9619ad, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 78.810000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.630000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e06bfe15-3f19-4d52-b6eb-bd7abe9619ad 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e06bfe15-3f19-4d52-b6eb-bd7abe9619ad 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e06bfe15-3f19-4d52-b6eb-bd7abe9619ad (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e06bfe15-3f19-4d52-b6eb-bd7abe9619ad', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 252s yielded = ctx_run(next, result) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 252s yield maybe_future(km.shutdown_kernel(kernel_id)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s --------------------------- Captured stderr teardown --------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 252s from typing import TYPE_CHECKING, Any 252s File "/usr/lib/python3.13/typing.py", line 1726, in 252s class _CallableType(_SpecialGenericAlias, _root=True): 252s ...<29 lines>... 252s return self.copy_with(params) 252s File "/usr/lib/python3.13/typing.py", line 1745, in _CallableType 252s @_tp_cache 252s ^^^^^^^^^ 252s File "/usr/lib/python3.13/typing.py", line 436, in _tp_cache 252s return decorator(func) 252s File "/usr/lib/python3.13/typing.py", line 415, in decorator 252s def decorator(func): 252s 252s KeyboardInterrupt 252s ______________________ KernelAPITest.test_kernel_handler _______________________ 252s 252s self = 252s 252s def test_kernel_handler(self): 252s # GET kernel with given id 252s kid = self.kern_api.start().json()['id'] 252s r = self.kern_api.get(kid) 252s kern1 = r.json() 252s self.assertEqual(r.status_code, 200) 252s assert isinstance(kern1, dict) 252s self.assertIn('id', kern1) 252s self.assertEqual(kern1['id'], kid) 252s 252s # Request a bad kernel id and check that a JSON 252s # message is returned! 252s bad_id = '111-111-111-111-111' 252s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 252s self.kern_api.get(bad_id) 252s 252s # DELETE kernel with id 252s > r = self.kern_api.shutdown(kid) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e7af3176-0213-4588-8ef0-f0fcc2edf95a 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 252s import jupyter_client 252s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 252s from .asynchronous import AsyncKernelClient 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 252s from .client import AsyncKernelClient # noqa 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 252s import zmq.asyncio 252s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 252s from zmq import sugar 252s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 252s from zmq.sugar import context, frame, poll, socket, tracker, version 252s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 252s from .socket import Socket, SyncSocket 252s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 10, in 252s import random 252s File "", line 1357, in _find_and_load 252s File "", line 418, in __enter__ 252s File "", line 311, in acquire 252s File "", line 170, in __enter__ 252s File "", line 132, in setdefault 252s File "", line 80, in __init__ 252s KeyboardInterrupt 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx3v5e8zp/runtime/kernel-e7af3176-0213-4588-8ef0-f0fcc2edf95a.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45771 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48225 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: e7af3176-0213-4588-8ef0-f0fcc2edf95a, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 34.620000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/e7af3176-0213-4588-8ef0-f0fcc2edf95a (::1) 2.220000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s 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 252s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 252s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 68.950000ms referer=None 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7af3176-0213-4588-8ef0-f0fcc2edf95a 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7af3176-0213-4588-8ef0-f0fcc2edf95a 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e7af3176-0213-4588-8ef0-f0fcc2edf95a (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e7af3176-0213-4588-8ef0-f0fcc2edf95a', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 252s yielded = ctx_run(next, result) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 252s yield maybe_future(km.shutdown_kernel(kernel_id)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e7af3176-0213-4588-8ef0-f0fcc2edf95a (::1) 35.590000ms referer=None 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.620000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e06bfe15-3f19-4d52-b6eb-bd7abe9619ad 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e06bfe15-3f19-4d52-b6eb-bd7abe9619ad 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e06bfe15-3f19-4d52-b6eb-bd7abe9619ad (::1) 40.230000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7af3176-0213-4588-8ef0-f0fcc2edf95a 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7af3176-0213-4588-8ef0-f0fcc2edf95a 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e7af3176-0213-4588-8ef0-f0fcc2edf95a (::1) 5.370000ms 252s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 252s 252s self = 252s 252s def test_main_kernel_handler(self): 252s # POST request 252s r = self.kern_api.start() 252s kern1 = r.json() 252s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 252s self.assertEqual(r.status_code, 201) 252s self.assertIsInstance(kern1, dict) 252s 252s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 252s expected_csp = '; '.join([ 252s "frame-ancestors 'self'", 252s 'report-uri ' + report_uri, 252s "default-src 'none'" 252s ]) 252s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 252s 252s # GET request 252s r = self.kern_api.list() 252s self.assertEqual(r.status_code, 200) 252s assert isinstance(r.json(), list) 252s self.assertEqual(r.json()[0]['id'], kern1['id']) 252s self.assertEqual(r.json()[0]['name'], kern1['name']) 252s 252s # create another kernel and check that they both are added to the 252s # list of kernels from a GET request 252s kern2 = self.kern_api.start().json() 252s assert isinstance(kern2, dict) 252s r = self.kern_api.list() 252s kernels = r.json() 252s self.assertEqual(r.status_code, 200) 252s assert isinstance(kernels, list) 252s self.assertEqual(len(kernels), 2) 252s 252s # Interrupt a kernel 252s r = self.kern_api.interrupt(kern2['id']) 252s self.assertEqual(r.status_code, 204) 252s 252s # Restart a kernel 252s > r = self.kern_api.restart(kern2['id']) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 252s return self._req('POST', url_path_join(id, 'restart')) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/23ba52a1-0697-4c5f-b516-9633f4f91a90/restart 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 252s import jupyter_client 252s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 252s from .asynchronous import AsyncKernelClient 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 252s from .client import AsyncKernelClient # noqa 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 252s import zmq.asyncio 252s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 252s from zmq import sugar 252s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 252s from zmq.sugar import context, frame, poll, socket, tracker, version 252s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 252s from .socket import Socket, SyncSocket 252s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 42, in 252s _SocketType = TypeVar("_SocketType", bound="Socket") 252s File "/usr/lib/python3.13/typing.py", line 191, in _type_check 252s arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms) 252s File "/usr/lib/python3.13/typing.py", line 169, in _type_convert 252s return ForwardRef(arg, module=module, is_class=allow_special_forms) 252s File "/usr/lib/python3.13/typing.py", line 1035, in __init__ 252s code = compile(arg_to_compile, '', 'eval') 252s KeyboardInterrupt 252s Traceback (most recent call last): 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx3v5e8zp/runtime/kernel-b3cfa35b-d77c-4b78-b0df-84865bd2b0f5.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34793 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49719 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3cfa35b-d77c-4b78-b0df-84865bd2b0f5, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 46.320000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 6.730000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpx3v5e8zp/runtime/kernel-23ba52a1-0697-4c5f-b516-9633f4f91a90.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55995 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57557 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 23ba52a1-0697-4c5f-b516-9633f4f91a90, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 145.470000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 79.840000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 23ba52a1-0697-4c5f-b516-9633f4f91a90 252s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/23ba52a1-0697-4c5f-b516-9633f4f91a90/interrupt (::1) 0.630000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 252s yield maybe_future(km.restart_kernel(kernel_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 252s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 252s await ensure_async(kernel.restart_kernel(now=now)) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 252s await self._async_shutdown_kernel(now=now, restart=True) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/23ba52a1-0697-4c5f-b516-9633f4f91a90/restart (::1) 14.450000ms referer=None 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.570000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b3cfa35b-d77c-4b78-b0df-84865bd2b0f5', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 252s yielded = ctx_run(next, result) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 252s yield maybe_future(km.shutdown_kernel(kernel_id)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ________________________ KernelAPITest.test_no_kernels _________________________ 252s 252s self = 252s 252s def test_no_kernels(self): 252s """Make sure there are no kernels running at the start""" 252s kernels = self.kern_api.list().json() 252s > self.assertEqual(kernels, []) 252s E AssertionError: Lists differ: [{'id': 'b3cfa35b-d77c-4b78-b0df-84865bd2b[281 chars]: 0}] != [] 252s E 252s E First list contains 2 additional elements. 252s E First extra element 0: 252s E {'id': 'b3cfa35b-d77c-4b78-b0df-84865bd2b0f5', 'name': 'python3', 'last_activity': '2026-02-02T09:04:46.463546Z', 'execution_state': 'starting', 'connections': 0} 252s E 252s E + [] 252s E - [{'connections': 0, 252s E - 'execution_state': 'starting', 252s E - 'id': 'b3cfa35b-d77c-4b78-b0df-84865bd2b0f5', 252s E - 'last_activity': '2026-02-02T09:04:46.463546Z', 252s E - 'name': 'python3'}, 252s E - {'connections': 0, 252s E - 'execution_state': 'starting', 252s E - 'id': '23ba52a1-0697-4c5f-b516-9633f4f91a90', 252s E - 'last_activity': '2026-02-02T09:04:46.542646Z', 252s E - 'name': 'python3'}] 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.160000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b3cfa35b-d77c-4b78-b0df-84865bd2b0f5 (::1) 1.440000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 23ba52a1-0697-4c5f-b516-9633f4f91a90 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23ba52a1-0697-4c5f-b516-9633f4f91a90 252s ---------------------------- Captured log teardown ----------------------------- 252s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 252s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 252s _____________________ AsyncKernelAPITest.test_connections ______________________ 252s 252s self = 252s 252s def tearDown(self): 252s for k in self.kern_api.list().json(): 252s > self.kern_api.shutdown(k['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log setup ------------------------------ 252s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp7ev03dsb/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp7ev03dsb/etc/jupyter'] for config files 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7ev03dsb/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7ev03dsb/config 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7ev03dsb/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7ev03dsb/config 252s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp7ev03dsb/notebooks 252s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 252s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 252s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 252s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 252s WARNING NotebookApp:handlers.py:612 Forbidden 252s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 3.070000ms referer=None 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ev03dsb/runtime/kernel-bc102005-6029-4904-aa17-f3e9b009ea01.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40673 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39077 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: bc102005-6029-4904-aa17-f3e9b009ea01, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.220000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01 (::1) 2.110000ms 252s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01/channels 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 252s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from bc102005-6029-4904-aa17-f3e9b009ea01 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44555 252s DEBUG NotebookApp:kernelmanager.py:423 activity on bc102005-6029-4904-aa17-f3e9b009ea01: status (starting) 252s DEBUG NotebookApp:kernelmanager.py:423 activity on bc102005-6029-4904-aa17-f3e9b009ea01: status (busy) 252s 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/'}]} 252s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel bc102005-6029-4904-aa17-f3e9b009ea01) to 5.4 (client). 252s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01/channels (::1) 1391.200000ms 252s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01/channels 252s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for bc102005-6029-4904-aa17-f3e9b009ea01 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39077 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44555 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40673 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33223 252s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel bc102005-6029-4904-aa17-f3e9b009ea01 252s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 252s Setting websocket_ping_timeout=30000 252s DEBUG NotebookApp:kernelmanager.py:423 activity on bc102005-6029-4904-aa17-f3e9b009ea01: status (idle) 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01 (::1) 4.100000ms 252s DEBUG NotebookApp:handlers.py:579 Websocket closed bc102005-6029-4904-aa17-f3e9b009ea01:3c35dc92-bf1a96ab7c5d75e484a50da4 252s INFO NotebookApp:kernelmanager.py:222 Starting buffering for bc102005-6029-4904-aa17-f3e9b009ea01:3c35dc92-bf1a96ab7c5d75e484a50da4 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bc102005-6029-4904-aa17-f3e9b009ea01 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01 (::1) 1.050000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01 (::1) 0.960000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bc102005-6029-4904-aa17-f3e9b009ea01 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bc102005-6029-4904-aa17-f3e9b009ea01 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 252s yield maybe_future(km.shutdown_kernel(kernel_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 252s 252s self = 252s 252s def tearDown(self): 252s for k in self.kern_api.list().json(): 252s > self.kern_api.shutdown(k['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/35195d60-94e9-4947-a71e-1157e68f74e1 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ev03dsb/runtime/kernel-35195d60-94e9-4947-a71e-1157e68f74e1.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34555 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33213 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 35195d60-94e9-4947-a71e-1157e68f74e1, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.710000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.610000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bc102005-6029-4904-aa17-f3e9b009ea01 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bc102005-6029-4904-aa17-f3e9b009ea01 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/bc102005-6029-4904-aa17-f3e9b009ea01 (::1) 2.180000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 35195d60-94e9-4947-a71e-1157e68f74e1 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35195d60-94e9-4947-a71e-1157e68f74e1 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/35195d60-94e9-4947-a71e-1157e68f74e1 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/35195d60-94e9-4947-a71e-1157e68f74e1', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 252s yield maybe_future(km.shutdown_kernel(kernel_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/35195d60-94e9-4947-a71e-1157e68f74e1 (::1) 28.710000ms referer=None 252s --------------------------- Captured stderr teardown --------------------------- 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 252s from pathlib import Path 252s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 252s from ._abc import * 252s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 252s from glob import _Globber, _no_recurse_symlinks 252s File "/usr/lib/python3.13/glob.py", line 3, in 252s import contextlib 252s File "/usr/lib/python3.13/contextlib.py", line 129, in 252s class _GeneratorContextManager( 252s ...<70 lines>... 252s self.gen.close() 252s File "/usr/lib/python3.13/contextlib.py", line 129, in _GeneratorContextManager 252s class _GeneratorContextManager( 252s 252s KeyboardInterrupt 252s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 252s 252s self = 252s 252s def test_kernel_handler(self): 252s # GET kernel with given id 252s kid = self.kern_api.start().json()['id'] 252s r = self.kern_api.get(kid) 252s kern1 = r.json() 252s self.assertEqual(r.status_code, 200) 252s assert isinstance(kern1, dict) 252s self.assertIn('id', kern1) 252s self.assertEqual(kern1['id'], kid) 252s 252s # Request a bad kernel id and check that a JSON 252s # message is returned! 252s bad_id = '111-111-111-111-111' 252s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 252s self.kern_api.get(bad_id) 252s 252s # DELETE kernel with id 252s > r = self.kern_api.shutdown(kid) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/14abea20-0f7c-490d-b7af-5e380e3b5aae 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ev03dsb/runtime/kernel-14abea20-0f7c-490d-b7af-5e380e3b5aae.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40885 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41249 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 14abea20-0f7c-490d-b7af-5e380e3b5aae, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 47.510000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/14abea20-0f7c-490d-b7af-5e380e3b5aae (::1) 0.600000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s 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 252s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 252s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.490000ms referer=None 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14abea20-0f7c-490d-b7af-5e380e3b5aae 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14abea20-0f7c-490d-b7af-5e380e3b5aae 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/14abea20-0f7c-490d-b7af-5e380e3b5aae (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/14abea20-0f7c-490d-b7af-5e380e3b5aae', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 252s yield maybe_future(km.shutdown_kernel(kernel_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/14abea20-0f7c-490d-b7af-5e380e3b5aae (::1) 5.930000ms referer=None 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.600000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 35195d60-94e9-4947-a71e-1157e68f74e1 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35195d60-94e9-4947-a71e-1157e68f74e1 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/35195d60-94e9-4947-a71e-1157e68f74e1 (::1) 1.400000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 14abea20-0f7c-490d-b7af-5e380e3b5aae 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14abea20-0f7c-490d-b7af-5e380e3b5aae 252s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 252s 252s self = 252s 252s def test_main_kernel_handler(self): 252s # POST request 252s r = self.kern_api.start() 252s kern1 = r.json() 252s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 252s self.assertEqual(r.status_code, 201) 252s self.assertIsInstance(kern1, dict) 252s 252s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 252s expected_csp = '; '.join([ 252s "frame-ancestors 'self'", 252s 'report-uri ' + report_uri, 252s "default-src 'none'" 252s ]) 252s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 252s 252s # GET request 252s r = self.kern_api.list() 252s self.assertEqual(r.status_code, 200) 252s assert isinstance(r.json(), list) 252s self.assertEqual(r.json()[0]['id'], kern1['id']) 252s self.assertEqual(r.json()[0]['name'], kern1['name']) 252s 252s # create another kernel and check that they both are added to the 252s # list of kernels from a GET request 252s kern2 = self.kern_api.start().json() 252s assert isinstance(kern2, dict) 252s r = self.kern_api.list() 252s kernels = r.json() 252s self.assertEqual(r.status_code, 200) 252s assert isinstance(kernels, list) 252s self.assertEqual(len(kernels), 2) 252s 252s # Interrupt a kernel 252s r = self.kern_api.interrupt(kern2['id']) 252s self.assertEqual(r.status_code, 204) 252s 252s # Restart a kernel 252s > r = self.kern_api.restart(kern2['id']) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 252s return self._req('POST', url_path_join(id, 'restart')) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/fd81146a-461a-49da-b0a5-df52e3f0a989/restart 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 252s from pathlib import Path 252s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 252s from ._abc import * 252s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 252s from glob import _Globber, _no_recurse_symlinks 252s File "/usr/lib/python3.13/glob.py", line 5, in 252s import re 252s File "/usr/lib/python3.13/re/__init__.py", line 125, in 252s import enum 252s File "", line 1360, in _find_and_load 252s File "", line 1322, in _find_and_load_unlocked 252s File "", line 1256, in _find_spec 252s File "", line 1222, in __enter__ 252s KeyboardInterrupt 252s Traceback (most recent call last): 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 252s from subprocess import PIPE, Popen 252s File "/usr/lib/python3.13/subprocess.py", line 46, in 252s import locale 252s File "/usr/lib/python3.13/locale.py", line 180, in 252s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 252s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 252s return _compile(pattern, flags) 252s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 252s p = _compiler.compile(pattern, flags) 252s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 252s p = _parser.parse(p, flags) 252s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 252s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 252s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 252s itemsappend(_parse(source, state, verbose, nested + 1, 252s File "/usr/lib/python3.13/re/_parser.py", line 863, in _parse 252s p = _parse_sub(source, state, sub_verbose, nested + 1) 252s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 252s itemsappend(_parse(source, state, verbose, nested + 1, 252s File "/usr/lib/python3.13/re/_parser.py", line 543, in _parse 252s code = _escape(source, this, state) 252s File "/usr/lib/python3.13/re/_parser.py", line 373, in _escape 252s code = CATEGORIES.get(escape) 252s KeyboardInterrupt 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ev03dsb/runtime/kernel-00eebc28-9f78-44d4-bdea-b628f6da73d6.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57049 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53467 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 00eebc28-9f78-44d4-bdea-b628f6da73d6, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.280000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7ev03dsb/runtime/kernel-fd81146a-461a-49da-b0a5-df52e3f0a989.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47767 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35219 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: fd81146a-461a-49da-b0a5-df52e3f0a989, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 25.590000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: fd81146a-461a-49da-b0a5-df52e3f0a989 252s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/fd81146a-461a-49da-b0a5-df52e3f0a989/interrupt (::1) 0.420000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 252s yield maybe_future(km.restart_kernel(kernel_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 252s result = coro.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 252s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 252s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 252s yield self # This tells Task to wait for completion. 252s ^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 252s await ensure_async(kernel.restart_kernel(now=now)) 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 252s await self._async_shutdown_kernel(now=now, restart=True) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/fd81146a-461a-49da-b0a5-df52e3f0a989/restart (::1) 50.520000ms referer=None 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00eebc28-9f78-44d4-bdea-b628f6da73d6 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00eebc28-9f78-44d4-bdea-b628f6da73d6 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/00eebc28-9f78-44d4-bdea-b628f6da73d6 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/00eebc28-9f78-44d4-bdea-b628f6da73d6', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 252s yield maybe_future(km.shutdown_kernel(kernel_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/00eebc28-9f78-44d4-bdea-b628f6da73d6 (::1) 6.020000ms referer=None 252s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 252s 252s self = 252s 252s def test_no_kernels(self): 252s """Make sure there are no kernels running at the start""" 252s kernels = self.kern_api.list().json() 252s > self.assertEqual(kernels, []) 252s E AssertionError: Lists differ: [{'id': '00eebc28-9f78-44d4-bdea-b628f6da7[281 chars]: 0}] != [] 252s E 252s E First list contains 2 additional elements. 252s E First extra element 0: 252s E {'id': '00eebc28-9f78-44d4-bdea-b628f6da73d6', 'name': 'python3', 'last_activity': '2026-02-02T09:04:49.138076Z', 'execution_state': 'starting', 'connections': 0} 252s E 252s E + [] 252s E - [{'connections': 0, 252s E - 'execution_state': 'starting', 252s E - 'id': '00eebc28-9f78-44d4-bdea-b628f6da73d6', 252s E - 'last_activity': '2026-02-02T09:04:49.138076Z', 252s E - 'name': 'python3'}, 252s E - {'connections': 0, 252s E - 'execution_state': 'starting', 252s E - 'id': 'fd81146a-461a-49da-b0a5-df52e3f0a989', 252s E - 'last_activity': '2026-02-02T09:04:49.167337Z', 252s E - 'name': 'python3'}] 252s 252s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 252s ---------------------------- Captured stderr setup ----------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 252s import jupyter_client 252s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 252s from .asynchronous import AsyncKernelClient 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 252s from .client import AsyncKernelClient # noqa 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 252s import zmq.asyncio 252s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 252s import asyncio 252s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 252s from .base_events import * 252s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 252s import ssl 252s File "", line 1360, in _find_and_load 252s File "", line 1331, in _find_and_load_unlocked 252s File "", line 935, in _load_unlocked 252s File "", line 1019, in exec_module 252s File "", line 1152, in get_code 252s File "", line 781, in _compile_bytecode 252s KeyboardInterrupt 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 00eebc28-9f78-44d4-bdea-b628f6da73d6 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00eebc28-9f78-44d4-bdea-b628f6da73d6 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/00eebc28-9f78-44d4-bdea-b628f6da73d6 (::1) 0.520000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd81146a-461a-49da-b0a5-df52e3f0a989 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd81146a-461a-49da-b0a5-df52e3f0a989 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fd81146a-461a-49da-b0a5-df52e3f0a989 (::1) 0.680000ms 252s ---------------------------- Captured log teardown ----------------------------- 252s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 14abea20-0f7c-490d-b7af-5e380e3b5aae 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 00eebc28-9f78-44d4-bdea-b628f6da73d6 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 35195d60-94e9-4947-a71e-1157e68f74e1 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bc102005-6029-4904-aa17-f3e9b009ea01 252s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 252s __________________________ SessionAPITest.test_create __________________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d5aa33f3-d607-4d3d-ad0f-ae7a4e681842 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log setup ------------------------------ 252s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpnztxxcen/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpnztxxcen/etc/jupyter'] for config files 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpnztxxcen/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpnztxxcen/config 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpnztxxcen/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpnztxxcen/config 252s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpnztxxcen/notebooks 252s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 252s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 252s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 252s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 252s WARNING NotebookApp:handlers.py:612 Forbidden 252s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.520000ms referer=None 252s ----------------------------- Captured stderr call ----------------------------- 252s Fatal Python error: init_import_site: Failed to import the site module 252s Python runtime state: initialized 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.130000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnztxxcen/runtime/kernel-ee7fe2b0-1942-4836-abe5-88019d08c508.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56341 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51075 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: ee7fe2b0-1942-4836-abe5-88019d08c508, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnztxxcen/notebooks/foo'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 50.040000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/d5aa33f3-d607-4d3d-ad0f-ae7a4e681842 (::1) 1.370000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.270000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee7fe2b0-1942-4836-abe5-88019d08c508 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee7fe2b0-1942-4836-abe5-88019d08c508 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d5aa33f3-d607-4d3d-ad0f-ae7a4e681842 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d5aa33f3-d607-4d3d-ad0f-ae7a4e681842', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 252s yielded = self.gen.send(value) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s --------------------------- Captured stderr teardown --------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/site.py", line 735, in 252s main() 252s ~~~~^^ 252s File "/usr/lib/python3.13/site.py", line 722, in main 252s known_paths = addsitepackages(known_paths) 252s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 252s addsitedir(sitedir, known_paths) 252s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 252s addpackage(sitedir, name, known_paths) 252s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3.13/site.py", line 213, in addpackage 252s exec(line) 252s ~~~~^^^^^^ 252s File "", line 1, in 252s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 92, in 252s class _TrivialRe: 252s ...<4 lines>... 252s return all(pat in string for pat in self._patterns) 252s KeyboardInterrupt 252s __________________ SessionAPITest.test_create_console_session __________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d8bca9d5-19b6-48a6-b14c-98a8afe13ca1 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnztxxcen/runtime/kernel-4a92e3fc-5dd1-412e-8a43-44b406ab1e55.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42377 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52191 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4a92e3fc-5dd1-412e-8a43-44b406ab1e55, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnztxxcen/notebooks/foo'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.770000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.560000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ee7fe2b0-1942-4836-abe5-88019d08c508 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ee7fe2b0-1942-4836-abe5-88019d08c508 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d5aa33f3-d607-4d3d-ad0f-ae7a4e681842 (::1) 0.810000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a92e3fc-5dd1-412e-8a43-44b406ab1e55 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a92e3fc-5dd1-412e-8a43-44b406ab1e55 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d8bca9d5-19b6-48a6-b14c-98a8afe13ca1 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d8bca9d5-19b6-48a6-b14c-98a8afe13ca1', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 252s yielded = self.gen.send(value) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s --------------------------- Captured stderr teardown --------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 252s from typing import TYPE_CHECKING, Any 252s File "/usr/lib/python3.13/typing.py", line 2937, in 252s class SupportsComplex(Protocol): 252s ...<6 lines>... 252s pass 252s File "/usr/lib/python3.13/typing.py", line 2083, in __new__ 252s return super().__new__(mcls, name, bases, namespace, **kwargs) 252s ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 252s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 252s KeyboardInterrupt 252s ____________________ SessionAPITest.test_create_deprecated _____________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/be03c0ae-b465-465a-8889-29a6e3c2b8eb 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnztxxcen/runtime/kernel-ef0131a6-c31a-45e6-9e03-1030f39ebca6.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35323 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53241 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: ef0131a6-c31a-45e6-9e03-1030f39ebca6, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnztxxcen/notebooks/foo'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.210000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4a92e3fc-5dd1-412e-8a43-44b406ab1e55 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4a92e3fc-5dd1-412e-8a43-44b406ab1e55 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/d8bca9d5-19b6-48a6-b14c-98a8afe13ca1 (::1) 1.590000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ef0131a6-c31a-45e6-9e03-1030f39ebca6 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ef0131a6-c31a-45e6-9e03-1030f39ebca6 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/be03c0ae-b465-465a-8889-29a6e3c2b8eb (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/be03c0ae-b465-465a-8889-29a6e3c2b8eb', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 252s yielded = self.gen.send(value) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s --------------------------- Captured stderr teardown --------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 252s from pathlib import Path 252s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 252s from ._abc import * 252s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 252s import functools 252s File "/usr/lib/python3.13/functools.py", line 18, in 252s from collections import namedtuple 252s File "", line 1360, in _find_and_load 252s File "", line 1331, in _find_and_load_unlocked 252s File "", line 946, in _load_unlocked 252s KeyboardInterrupt 252s ___________________ SessionAPITest.test_create_file_session ____________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3598a756-87a1-4a13-8fcd-cb34cd6a526e 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnztxxcen/runtime/kernel-def5e308-ecb1-4946-b10a-c8515fca6d48.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42719 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50227 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: def5e308-ecb1-4946-b10a-c8515fca6d48, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpnztxxcen/notebooks/foo'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 20.060000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.630000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ef0131a6-c31a-45e6-9e03-1030f39ebca6 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ef0131a6-c31a-45e6-9e03-1030f39ebca6 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/be03c0ae-b465-465a-8889-29a6e3c2b8eb (::1) 1.640000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for def5e308-ecb1-4946-b10a-c8515fca6d48 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: def5e308-ecb1-4946-b10a-c8515fca6d48 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3598a756-87a1-4a13-8fcd-cb34cd6a526e (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3598a756-87a1-4a13-8fcd-cb34cd6a526e', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 252s yielded = self.gen.send(value) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s --------------------------- Captured stderr teardown --------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 252s from pathlib import Path 252s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 252s from ._abc import * 252s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 252s import functools 252s File "/usr/lib/python3.13/functools.py", line 18, in 252s from collections import namedtuple 252s File "/usr/lib/python3.13/collections/__init__.py", line 41, in 252s from reprlib import recursive_repr as _recursive_repr 252s File "/usr/lib/python3.13/reprlib.py", line 38, in 252s class Repr: 252s ...<178 lines>... 252s return s 252s KeyboardInterrupt 252s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 252s 252s self = 252s 252s def test_create_with_kernel_id(self): 252s # create a new kernel 252s r = self.request('POST', 'api/kernels') 252s r.raise_for_status() 252s kernel = r.json() 252s 252s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 252s self.assertEqual(resp.status_code, 201) 252s newsession = resp.json() 252s self.assertIn('id', newsession) 252s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 252s self.assertEqual(newsession['kernel']['id'], kernel['id']) 252s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 252s 252s sessions = self.sess_api.list().json() 252s > self.assertEqual(sessions, [newsession]) 252s E AssertionError: Lists differ: [{'id': '3598a756-87a1-4a13-8fcd-cb34cd6a526e', 'p[553 chars]ne}}] != [{'id': 'c204aa1f-3d25-41c5-9d64-53ac72631199', 'p[279 chars]ne}}] 252s E 252s E First differing element 0: 252s E {'id': '3598a756-87a1-4a13-8fcd-cb34cd6a526e', 'p[218 chars]: 0}} 252s E {'id': 'c204aa1f-3d25-41c5-9d64-53ac72631199', 'p[278 chars]one}} 252s E 252s E First list contains 1 additional elements. 252s E First extra element 1: 252s E {'id': 'c204aa1f-3d25-41c5-9d64-53ac72631199', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'fb1f3372-2a3d-4bf1-9702-799d300b61a3', 'name': 'python3', 'last_activity': '2026-02-02T09:04:50.236334Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 252s E 252s E Diff is 830 characters long. Set self.maxDiff to None to see it. 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnztxxcen/runtime/kernel-fb1f3372-2a3d-4bf1-9702-799d300b61a3.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60437 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48559 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: fb1f3372-2a3d-4bf1-9702-799d300b61a3, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.430000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.540000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 32.000000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for def5e308-ecb1-4946-b10a-c8515fca6d48 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: def5e308-ecb1-4946-b10a-c8515fca6d48 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3598a756-87a1-4a13-8fcd-cb34cd6a526e (::1) 0.700000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fb1f3372-2a3d-4bf1-9702-799d300b61a3 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fb1f3372-2a3d-4bf1-9702-799d300b61a3 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 252s yielded = self.gen.send(value) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 5.800000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnztxxcen/runtime/kernel-6e0e9466-5b10-422f-be36-2990b9964c77.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41531 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53713 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6e0e9466-5b10-422f-be36-2990b9964c77, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 78.390000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fb1f3372-2a3d-4bf1-9702-799d300b61a3 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fb1f3372-2a3d-4bf1-9702-799d300b61a3 252s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 (::1) 1.030000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.320000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e0e9466-5b10-422f-be36-2990b9964c77 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e0e9466-5b10-422f-be36-2990b9964c77 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 252s yielded = self.gen.send(value) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 252s import jupyter_client 252s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 252s from .asynchronous import AsyncKernelClient 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 252s from .client import AsyncKernelClient # noqa 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 252s import zmq.asyncio 252s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 252s from zmq import backend 252s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 252s _ns = select_backend(first) 252s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 252s mod = import_module(name) 252s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 252s return _bootstrap._gcd_import(name[level:], package, level) 252s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 252s from . import _zmq 252s File "_zmq.py", line 156, in init zmq.backend.cython._zmq 252s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 134, in 252s class SocketOption(IntEnum): 252s ...<138 lines>... 252s NORM_PUSH = 124 252s File "/usr/lib/python3.13/enum.py", line 568, in __new__ 252s enum_class = super().__new__(metacls, cls, bases, classdict, **kwds) 252s File "/usr/lib/python3.13/enum.py", line 268, in __set_name__ 252s enum_member = enum_class._new_member_(enum_class, *args) 252s File "/usr/lib/python3/dist-packages/zmq/constants.py", line 142, in __new__ 252s def __new__(cls, value: int, opt_type: _OptType = _OptType.int): 252s 252s KeyboardInterrupt 252s Error calling __set_name__ on '_proto_member' instance 'USE_FD' in 'SocketOption' 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.550000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpnztxxcen/runtime/kernel-84440413-fb96-436e-878a-6bf9e223c6ad.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53345 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55427 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 84440413-fb96-436e-878a-6bf9e223c6ad, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpnztxxcen/notebooks/foo'} 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e0e9466-5b10-422f-be36-2990b9964c77 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e0e9466-5b10-422f-be36-2990b9964c77 252s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 (::1) 28.990000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 84440413-fb96-436e-878a-6bf9e223c6ad 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 84440413-fb96-436e-878a-6bf9e223c6ad 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 252s yielded = self.gen.send(value) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 252s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 252s stopper = ensure_async(km.shutdown_kernel(now, restart)) 252s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 252s return _runner_map[name].run(inner) 252s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 252s return fut.result(None) 252s ~~~~~~~~~~^^^^^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 252s return self.__get_result() 252s ~~~~~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 252s raise self._exception 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c204aa1f-3d25-41c5-9d64-53ac72631199 (::1) 32.300000ms referer=None 252s --------------------------- Captured stderr teardown --------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 252s from subprocess import PIPE, Popen 252s File "/usr/lib/python3.13/subprocess.py", line 46, in 252s import locale 252s File "", line 1360, in _find_and_load 252s File "", line 1331, in _find_and_load_unlocked 252s File "", line 935, in _load_unlocked 252s File "", line 1019, in exec_module 252s File "", line 1115, in get_code 252s File "", line 1214, in get_data 252s KeyboardInterrupt 252s ---------------------------- Captured log teardown ----------------------------- 252s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 84440413-fb96-436e-878a-6bf9e223c6ad 252s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 252s _______________________ AsyncSessionAPITest.test_create ________________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8913d48d-045c-44f2-ab9c-9dc9edbda483 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ------------------------------ Captured log setup ------------------------------ 252s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp20wfq4mu/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp20wfq4mu/etc/jupyter'] for config files 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp20wfq4mu/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp20wfq4mu/config 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp20wfq4mu/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 252s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp20wfq4mu/config 252s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp20wfq4mu/notebooks 252s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 252s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 252s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 252s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 252s WARNING NotebookApp:handlers.py:612 Forbidden 252s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.370000ms referer=None 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.110000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20wfq4mu/runtime/kernel-f8153079-d53d-447f-a170-90c21a3ac38c.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55723 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39789 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: f8153079-d53d-447f-a170-90c21a3ac38c, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20wfq4mu/notebooks/foo'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.560000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.720000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/8913d48d-045c-44f2-ab9c-9dc9edbda483 (::1) 1.600000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.510000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f8153079-d53d-447f-a170-90c21a3ac38c 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f8153079-d53d-447f-a170-90c21a3ac38c 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8913d48d-045c-44f2-ab9c-9dc9edbda483 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8913d48d-045c-44f2-ab9c-9dc9edbda483', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8913d48d-045c-44f2-ab9c-9dc9edbda483 (::1) 5.910000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 252s gc.collect() 252s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 252s 252s --------------------------- Captured stderr teardown --------------------------- 252s Fatal Python error: init_import_site: Failed to import the site module 252s Python runtime state: initialized 252s _______________ AsyncSessionAPITest.test_create_console_session ________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c99b5df7-e9dd-4a07-b67e-f9fb8e65976a 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/site.py", line 79, in 252s import os 252s File "/usr/lib/python3.13/os.py", line 29, in 252s from _collections_abc import _check_methods 252s File "/usr/lib/python3.13/_collections_abc.py", line 791, in 252s class Mapping(Collection): 252s ...<48 lines>... 252s __reversed__ = None 252s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 252s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 252s KeyboardInterrupt 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20wfq4mu/runtime/kernel-28fd01be-fd96-47fc-a924-c060717e13a2.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48889 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47895 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 28fd01be-fd96-47fc-a924-c060717e13a2, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20wfq4mu/notebooks/foo'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 98.250000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.930000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f8153079-d53d-447f-a170-90c21a3ac38c 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f8153079-d53d-447f-a170-90c21a3ac38c 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8913d48d-045c-44f2-ab9c-9dc9edbda483 (::1) 1.610000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 28fd01be-fd96-47fc-a924-c060717e13a2 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 28fd01be-fd96-47fc-a924-c060717e13a2 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c99b5df7-e9dd-4a07-b67e-f9fb8e65976a (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c99b5df7-e9dd-4a07-b67e-f9fb8e65976a', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s ERROR NotebookApp:log.py:55 { 252s "Host": "localhost:12341", 252s "Accept": "*/*", 252s "User-Agent": "python-requests/2.32.5" 252s } 252s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c99b5df7-e9dd-4a07-b67e-f9fb8e65976a (::1) 8.270000ms referer=None 252s --------------------------- Captured stderr teardown --------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 252s import jupyter_client 252s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 252s from .asynchronous import AsyncKernelClient 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 252s from .client import AsyncKernelClient # noqa 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 252s import zmq.asyncio 252s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 252s import asyncio 252s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 252s from .base_events import * 252s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 252s import concurrent.futures 252s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 252s from concurrent.futures._base import (FIRST_COMPLETED, 252s ...<9 lines>... 252s as_completed) 252s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 252s import logging 252s File "/usr/lib/python3.13/logging/__init__.py", line 2266, in 252s class NullHandler(Handler): 252s ...<19 lines>... 252s pass 252s KeyboardInterrupt 252s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/17710f72-44ec-446f-8db6-f3cd50e44cb3 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20wfq4mu/runtime/kernel-545044bf-c0d8-432c-ada2-7a69b83b0f7f.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45597 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57973 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 545044bf-c0d8-432c-ada2-7a69b83b0f7f, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20wfq4mu/notebooks/foo'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.070000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.560000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 28fd01be-fd96-47fc-a924-c060717e13a2 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 28fd01be-fd96-47fc-a924-c060717e13a2 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c99b5df7-e9dd-4a07-b67e-f9fb8e65976a (::1) 0.720000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 545044bf-c0d8-432c-ada2-7a69b83b0f7f 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 545044bf-c0d8-432c-ada2-7a69b83b0f7f 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/17710f72-44ec-446f-8db6-f3cd50e44cb3 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/17710f72-44ec-446f-8db6-f3cd50e44cb3', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s --------------------------- Captured stderr teardown --------------------------- 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 252s from ._version import ( 252s ...<4 lines>... 252s ) 252s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 252s match = re.match(pattern, __version__) 252s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 252s return _compile(pattern, flags).match(string) 252s ~~~~~~~~^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 252s p = _compiler.compile(pattern, flags) 252s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 252s code = _code(p, flags) 252s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 252s _compile(code, p.data, flags) 252s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 252s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 252s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3.13/re/_compiler.py", line 105, in _compile 252s emit(REPEATING_CODES[op][2]) 252s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 252s KeyboardInterrupt 252s _________________ AsyncSessionAPITest.test_create_file_session _________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8c8d4194-5e02-4ed9-bace-8640c6bf9715 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ----------------------------- Captured stderr call ----------------------------- 252s Traceback (most recent call last): 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20wfq4mu/runtime/kernel-6c1c0608-bd9e-424f-b085-0b705e564559.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34397 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44253 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6c1c0608-bd9e-424f-b085-0b705e564559, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp20wfq4mu/notebooks/foo'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 67.970000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.690000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 545044bf-c0d8-432c-ada2-7a69b83b0f7f 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 545044bf-c0d8-432c-ada2-7a69b83b0f7f 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/17710f72-44ec-446f-8db6-f3cd50e44cb3 (::1) 0.720000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c1c0608-bd9e-424f-b085-0b705e564559 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c1c0608-bd9e-424f-b085-0b705e564559 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8c8d4194-5e02-4ed9-bace-8640c6bf9715 (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8c8d4194-5e02-4ed9-bace-8640c6bf9715', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s --------------------------- Captured stderr teardown --------------------------- 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 252s from subprocess import PIPE, Popen 252s File "", line 1360, in _find_and_load 252s File "", line 1331, in _find_and_load_unlocked 252s File "", line 935, in _load_unlocked 252s File "", line 1019, in exec_module 252s File "", line 1152, in get_code 252s File "", line 781, in _compile_bytecode 252s KeyboardInterrupt 252s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 252s 252s self = 252s 252s def test_create_with_kernel_id(self): 252s # create a new kernel 252s r = self.request('POST', 'api/kernels') 252s r.raise_for_status() 252s kernel = r.json() 252s 252s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 252s self.assertEqual(resp.status_code, 201) 252s newsession = resp.json() 252s self.assertIn('id', newsession) 252s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 252s self.assertEqual(newsession['kernel']['id'], kernel['id']) 252s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 252s 252s sessions = self.sess_api.list().json() 252s > self.assertEqual(sessions, [newsession]) 252s E AssertionError: Lists differ: [{'id': '8c8d4194-5e02-4ed9-bace-8640c6bf9715', 'pa[552 chars]ne}}] != [{'id': '84bc7261-355e-416d-8b2a-bc0ba5c4171d', 'pa[278 chars]ne}}] 252s E 252s E First differing element 0: 252s E {'id': '8c8d4194-5e02-4ed9-bace-8640c6bf9715', 'pa[217 chars]: 0}} 252s E {'id': '84bc7261-355e-416d-8b2a-bc0ba5c4171d', 'pa[277 chars]one}} 252s E 252s E First list contains 1 additional elements. 252s E First extra element 1: 252s E {'id': '84bc7261-355e-416d-8b2a-bc0ba5c4171d', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'df9a55ce-021d-4bb0-9995-a7cb1de69bd5', 'name': 'python3', 'last_activity': '2026-02-02T09:04:51.715800Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 252s E 252s E Diff is 830 characters long. Set self.maxDiff to None to see it. 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 252s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20wfq4mu/runtime/kernel-df9a55ce-021d-4bb0-9995-a7cb1de69bd5.json'] 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56721 252s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48625 252s INFO NotebookApp:kernelmanager.py:179 Kernel started: df9a55ce-021d-4bb0-9995-a7cb1de69bd5, name: python3 252s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 38.860000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 6.230000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.620000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6c1c0608-bd9e-424f-b085-0b705e564559 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c1c0608-bd9e-424f-b085-0b705e564559 252s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8c8d4194-5e02-4ed9-bace-8640c6bf9715 (::1) 4.710000ms 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for df9a55ce-021d-4bb0-9995-a7cb1de69bd5 252s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df9a55ce-021d-4bb0-9995-a7cb1de69bd5 252s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d (::1) 252s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d', version='HTTP/1.1', remote_ip='::1') 252s Traceback (most recent call last): 252s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 252s result = await result 252s ^^^^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 252s future.result() 252s ~~~~~~~~~~~~~^^ 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 252s yield maybe_future(sm.delete_session(session_id)) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 252s yielded = self.gen.throw(exc) 252s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 252s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 252s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 252s value = future.result() 252s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 252s raise self._exception.with_traceback(self._exception_tb) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 252s result = coro.send(None) 252s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 252s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 252s raise km.ready.exception() # type: ignore[misc] 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 252s await kernel_awaitable 252s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 252s result = await obj 252s ^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 252s raise e 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 252s out = await method(self, *args, **kwargs) 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 252s await self._async_finish_shutdown(restart=restart) 252s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 252s await asyncio.wait_for( 252s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 252s ) 252s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 252s async with timeouts.timeout(timeout): 252s ~~~~~~~~~~~~~~~~^^^^^^^^^ 252s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 252s raise RuntimeError("Timeout should be used inside a task") 252s RuntimeError: Timeout should be used inside a task 252s WARNING NotebookApp:handlers.py:612 Unhandled error 252s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 252s 252s @self.addCleanup 252s def cleanup_sessions(): 252s for session in self.sess_api.list().json(): 252s > self.sess_api.delete(session['id']) 252s 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 252s return self._req('DELETE', id) 252s ^^^^^^^^^^^^^^^^^^^^^^^ 252s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 252s response.raise_for_status() 252s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 252s 252s self = 252s 252s def raise_for_status(self): 252s """Raises :class:`HTTPError`, if one occurred.""" 252s 252s http_error_msg = "" 252s if isinstance(self.reason, bytes): 252s # We attempt to decode utf-8 first because some servers 252s # choose to localize their reason strings. If the string 252s # isn't utf-8, we fall back to iso-8859-1 for all other 252s # encodings. (See PR #3538) 252s try: 252s reason = self.reason.decode("utf-8") 252s except UnicodeDecodeError: 252s reason = self.reason.decode("iso-8859-1") 252s else: 252s reason = self.reason 252s 252s if 400 <= self.status_code < 500: 252s http_error_msg = ( 252s f"{self.status_code} Client Error: {reason} for url: {self.url}" 252s ) 252s 252s elif 500 <= self.status_code < 600: 252s http_error_msg = ( 252s f"{self.status_code} Server Error: {reason} for url: {self.url}" 252s ) 252s 252s if http_error_msg: 252s > raise HTTPError(http_error_msg, response=self) 252s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d 252s 252s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 252s ---------------------------- Captured stderr setup ----------------------------- 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 252s return _run_code(code, main_globals, None, 252s "__main__", mod_spec) 252s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 252s exec(code, run_globals) 252s ~~~~^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 252s from ipykernel import kernelapp as app 252s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 252s from .connect import * # noqa: F403 252s ^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 252s import jupyter_client 252s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 252s from .asynchronous import AsyncKernelClient 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 252s from .client import AsyncKernelClient # noqa 252s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 252s import zmq.asyncio 252s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 252s from zmq import backend 252s File "", line 1360, in _find_and_load 252s File "", line 1322, in _find_and_load_unlocked 252s File "", line 1262, in _find_spec 252s File "", line 1556, in find_spec 252s File "", line 1530, in _get_spec 252s File "", line 1633, in find_spec 252s File "", line 1676, in _fill_cache 252s KeyboardInterrupt 252s ----------------------------- Captured stderr call ----------------------------- 252s Fatal Python error: init_import_site: Failed to import the site module 252s Python runtime state: initialized 252s ------------------------------ Captured log call ------------------------------- 252s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 252s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.850000ms 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 253s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20wfq4mu/runtime/kernel-6413d329-02f6-4b5a-8984-ef55960adfa6.json'] 253s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43105 253s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41961 253s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6413d329-02f6-4b5a-8984-ef55960adfa6, name: python3 253s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 253s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 30.990000ms 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for df9a55ce-021d-4bb0-9995-a7cb1de69bd5 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df9a55ce-021d-4bb0-9995-a7cb1de69bd5 253s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d (::1) 2.170000ms 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.580000ms 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.050000ms 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6413d329-02f6-4b5a-8984-ef55960adfa6 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6413d329-02f6-4b5a-8984-ef55960adfa6 253s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 253s Traceback (most recent call last): 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 253s out = await method(self, *args, **kwargs) 253s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 253s await self._async_finish_shutdown(restart=restart) 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 253s await asyncio.wait_for( 253s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 253s ) 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 253s async with timeouts.timeout(timeout): 253s ~~~~~~~~~~~~~~~~^^^^^^^^^ 253s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 253s raise RuntimeError("Timeout should be used inside a task") 253s RuntimeError: Timeout should be used inside a task 253s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 253s Traceback (most recent call last): 253s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 253s await kernel_awaitable 253s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 253s result = await obj 253s ^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 253s raise e 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 253s out = await method(self, *args, **kwargs) 253s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 253s await self._async_finish_shutdown(restart=restart) 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 253s await asyncio.wait_for( 253s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 253s ) 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 253s async with timeouts.timeout(timeout): 253s ~~~~~~~~~~~~~~~~^^^^^^^^^ 253s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 253s raise RuntimeError("Timeout should be used inside a task") 253s RuntimeError: Timeout should be used inside a task 253s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d (::1) 253s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d', version='HTTP/1.1', remote_ip='::1') 253s Traceback (most recent call last): 253s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 253s result = await result 253s ^^^^^^^^^^^^ 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 253s future.result() 253s ~~~~~~~~~~~~~^^ 253s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 253s yielded = self.gen.throw(exc) 253s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 253s yield maybe_future(sm.delete_session(session_id)) 253s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 253s value = future.result() 253s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 253s yielded = self.gen.throw(exc) 253s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 253s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 253s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 253s value = future.result() 253s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 253s raise self._exception.with_traceback(self._exception_tb) 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 253s result = coro.send(None) 253s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 253s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 253s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 253s raise km.ready.exception() # type: ignore[misc] 253s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 253s await kernel_awaitable 253s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 253s result = await obj 253s ^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 253s raise e 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 253s out = await method(self, *args, **kwargs) 253s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 253s await self._async_finish_shutdown(restart=restart) 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 253s await asyncio.wait_for( 253s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 253s ) 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 253s async with timeouts.timeout(timeout): 253s ~~~~~~~~~~~~~~~~^^^^^^^^^ 253s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 253s raise RuntimeError("Timeout should be used inside a task") 253s RuntimeError: Timeout should be used inside a task 253s WARNING NotebookApp:handlers.py:612 Unhandled error 253s --------------------------- Captured stderr teardown --------------------------- 253s Traceback (most recent call last): 253s File "/usr/lib/python3.13/site.py", line 735, in 253s main() 253s ~~~~^^ 253s File "/usr/lib/python3.13/site.py", line 722, in main 253s known_paths = addsitepackages(known_paths) 253s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 253s addsitedir(sitedir, known_paths) 253s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 253s addpackage(sitedir, name, known_paths) 253s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3.13/site.py", line 213, in addpackage 253s exec(line) 253s ~~~~^^^^^^ 253s File "", line 1, in 253s File "", line 1360, in _find_and_load 253s File "", line 1322, in _find_and_load_unlocked 253s File "", line 1262, in _find_spec 253s File "", line 1556, in find_spec 253s File "", line 1530, in _get_spec 253s File "", line 1633, in find_spec 253s File "", line 1676, in _fill_cache 253s KeyboardInterrupt 253s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 253s 253s @self.addCleanup 253s def cleanup_sessions(): 253s for session in self.sess_api.list().json(): 253s > self.sess_api.delete(session['id']) 253s 253s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 253s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 253s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 253s return self._req('DELETE', id) 253s ^^^^^^^^^^^^^^^^^^^^^^^ 253s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 253s response.raise_for_status() 253s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 253s 253s self = 253s 253s def raise_for_status(self): 253s """Raises :class:`HTTPError`, if one occurred.""" 253s 253s http_error_msg = "" 253s if isinstance(self.reason, bytes): 253s # We attempt to decode utf-8 first because some servers 253s # choose to localize their reason strings. If the string 253s # isn't utf-8, we fall back to iso-8859-1 for all other 253s # encodings. (See PR #3538) 253s try: 253s reason = self.reason.decode("utf-8") 253s except UnicodeDecodeError: 253s reason = self.reason.decode("iso-8859-1") 253s else: 253s reason = self.reason 253s 253s if 400 <= self.status_code < 500: 253s http_error_msg = ( 253s f"{self.status_code} Client Error: {reason} for url: {self.url}" 253s ) 253s 253s elif 500 <= self.status_code < 600: 253s http_error_msg = ( 253s f"{self.status_code} Server Error: {reason} for url: {self.url}" 253s ) 253s 253s if http_error_msg: 253s > raise HTTPError(http_error_msg, response=self) 253s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d 253s 253s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 253s ------------------------------ Captured log call ------------------------------- 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 3.860000ms 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 253s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp20wfq4mu/runtime/kernel-7cbc6379-a4fc-4e28-8f8e-92fef3538bf3.json'] 253s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56105 253s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37931 253s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7cbc6379-a4fc-4e28-8f8e-92fef3538bf3, name: python3 253s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp20wfq4mu/notebooks/foo'} 253s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6413d329-02f6-4b5a-8984-ef55960adfa6 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6413d329-02f6-4b5a-8984-ef55960adfa6 253s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d (::1) 109.950000ms 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 253s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 253s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7cbc6379-a4fc-4e28-8f8e-92fef3538bf3 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7cbc6379-a4fc-4e28-8f8e-92fef3538bf3 253s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 253s Traceback (most recent call last): 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 253s out = await method(self, *args, **kwargs) 253s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 253s await self._async_finish_shutdown(restart=restart) 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 253s await asyncio.wait_for( 253s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 253s ) 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 253s async with timeouts.timeout(timeout): 253s ~~~~~~~~~~~~~~~~^^^^^^^^^ 253s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 253s raise RuntimeError("Timeout should be used inside a task") 253s RuntimeError: Timeout should be used inside a task 253s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 253s Traceback (most recent call last): 253s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 253s await kernel_awaitable 253s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 253s result = await obj 253s ^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 253s raise e 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 253s out = await method(self, *args, **kwargs) 253s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 253s await self._async_finish_shutdown(restart=restart) 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 253s await asyncio.wait_for( 253s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 253s ) 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 253s async with timeouts.timeout(timeout): 253s ~~~~~~~~~~~~~~~~^^^^^^^^^ 253s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 253s raise RuntimeError("Timeout should be used inside a task") 253s RuntimeError: Timeout should be used inside a task 253s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d (::1) 253s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d', version='HTTP/1.1', remote_ip='::1') 253s Traceback (most recent call last): 253s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 253s result = await result 253s ^^^^^^^^^^^^ 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 253s future.result() 253s ~~~~~~~~~~~~~^^ 253s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 253s yielded = self.gen.throw(exc) 253s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 253s yield maybe_future(sm.delete_session(session_id)) 253s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 253s value = future.result() 253s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 253s yielded = self.gen.throw(exc) 253s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 253s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 253s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 253s value = future.result() 253s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 253s raise self._exception.with_traceback(self._exception_tb) 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 253s result = coro.send(None) 253s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 253s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 253s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 253s raise km.ready.exception() # type: ignore[misc] 253s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 253s await kernel_awaitable 253s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 253s result = await obj 253s ^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 253s raise e 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 253s out = await method(self, *args, **kwargs) 253s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 253s await self._async_finish_shutdown(restart=restart) 253s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 253s await asyncio.wait_for( 253s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 253s ) 253s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 253s async with timeouts.timeout(timeout): 253s ~~~~~~~~~~~~~~~~^^^^^^^^^ 253s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 253s raise RuntimeError("Timeout should be used inside a task") 253s RuntimeError: Timeout should be used inside a task 253s WARNING NotebookApp:handlers.py:612 Unhandled error 253s ERROR NotebookApp:log.py:55 { 253s "Host": "localhost:12341", 253s "Accept": "*/*", 253s "User-Agent": "python-requests/2.32.5" 253s } 253s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/84bc7261-355e-416d-8b2a-bc0ba5c4171d (::1) 7.170000ms referer=None 253s ---------------------------- Captured log teardown ----------------------------- 253s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f8153079-d53d-447f-a170-90c21a3ac38c 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 28fd01be-fd96-47fc-a924-c060717e13a2 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6413d329-02f6-4b5a-8984-ef55960adfa6 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 545044bf-c0d8-432c-ada2-7a69b83b0f7f 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: df9a55ce-021d-4bb0-9995-a7cb1de69bd5 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7cbc6379-a4fc-4e28-8f8e-92fef3538bf3 253s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6c1c0608-bd9e-424f-b085-0b705e564559 253s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 253s =============================== warnings summary =============================== 253s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 253s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 253s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 253s return LooseVersion(v) >= LooseVersion(check) 253s 253s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 253s services/kernels/tests/test_kernels_api.py: 68 warnings 253s services/sessions/tests/test_sessions_api.py: 88 warnings 253s /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). 253s dt = unaware(*args, **kwargs) 253s 253s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 253s /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 253s pytestmark = pytest.mark.integration_tests 253s 253s services/kernels/tests/test_kernels_api.py: 6 warnings 253s services/sessions/tests/test_sessions_api.py: 6 warnings 253s /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 253s policy = events.get_event_loop_policy() 253s 253s services/kernels/tests/test_kernels_api.py: 24 warnings 253s services/sessions/tests/test_sessions_api.py: 19 warnings 253s /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 253s loop = events.get_event_loop_policy().get_event_loop() 253s 253s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 253s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 253s loop.make_current() 253s 253s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 253s =========================== short test summary info ============================ 253s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 253s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 253s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 253s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 253s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 253s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 253s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 253s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 253s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 253s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 253s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 253s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 253s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 253s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 253s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 253s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 253s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 253s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 253s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 253s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 253s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 253s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 253s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 253s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 253s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 253s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 253s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 253s ========= 23 failed, 307 deselected, 216 warnings, 4 errors in 16.10s ========== 253s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 253s *** 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 261s ============================= test session starts ============================== 261s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 261s rootdir: /tmp/autopkgtest.g7xfi7/autopkgtest_tmp 261s plugins: typeguard-4.4.4 261s collected 330 items / 307 deselected / 23 selected 261s run-last-failure: rerun previous 23 failures 261s 263s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 265s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 265s 265s ==================================== ERRORS ==================================== 265s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 265s 265s self = 265s 265s def tearDown(self): 265s for k in self.kern_api.list().json(): 265s > self.kern_api.shutdown(k['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8f4f1c22-22b8-4b0c-977d-a06b171fad5d 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ----------------------------- Captured stderr call ----------------------------- 265s Fatal Python error: init_import_site: Failed to import the site module 265s Python runtime state: initialized 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/site.py", line 735, in 265s main() 265s File "/usr/lib/python3.13/site.py", line 722, in main 265s known_paths = addsitepackages(known_paths) 265s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 265s addsitedir(sitedir, known_paths) 265s File "/usr/lib/python3.13/site.py", line 248, in addsitedir 265s names = os.listdir(sitedir) 265s KeyboardInterrupt 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 265s from ipykernel import kernelapp as app 265s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 265s from .connect import * # noqa: F403 265s ^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 265s from typing import TYPE_CHECKING, Any 265s File "/usr/lib/python3.13/typing.py", line 3585, in 265s class TextIO(IO[str]): 265s ...<31 lines>... 265s pass 265s File "/usr/lib/python3.13/typing.py", line 3602, in TextIO 265s def errors(self) -> Optional[str]: 265s ~~~~~~~~^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 429, in inner 265s return _caches[func](*args, **kwds) 265s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 576, in __getitem__ 265s return self._getitem(self, parameters) 265s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 810, in Optional 265s return Union[arg, type(None)] 265s ~~~~~^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 429, in inner 265s return _caches[func](*args, **kwds) 265s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 576, in __getitem__ 265s return self._getitem(self, parameters) 265s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 794, in Union 265s return _UnionGenericAlias(self, parameters, name="Optional") 265s KeyboardInterrupt 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzgux7tmo/runtime/kernel-8f4f1c22-22b8-4b0c-977d-a06b171fad5d.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48109 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51131 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8f4f1c22-22b8-4b0c-977d-a06b171fad5d, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 27.020000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzgux7tmo/runtime/kernel-9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50895 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34893 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.610000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7 265s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7/interrupt (::1) 0.630000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 265s yield maybe_future(km.restart_kernel(kernel_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 265s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 265s await ensure_async(kernel.restart_kernel(now=now)) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 265s await self._async_shutdown_kernel(now=now, restart=True) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7/restart (::1) 4.690000ms referer=None 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f4f1c22-22b8-4b0c-977d-a06b171fad5d 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f4f1c22-22b8-4b0c-977d-a06b171fad5d 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8f4f1c22-22b8-4b0c-977d-a06b171fad5d (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8f4f1c22-22b8-4b0c-977d-a06b171fad5d', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 265s yielded = ctx_run(next, result) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 265s yield maybe_future(km.shutdown_kernel(kernel_id)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 265s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 265s stopper = ensure_async(km.shutdown_kernel(now, restart)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8f4f1c22-22b8-4b0c-977d-a06b171fad5d (::1) 11.550000ms referer=None 265s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 265s 265s self = 265s 265s def tearDown(self): 265s for k in self.kern_api.list().json(): 265s > self.kern_api.shutdown(k['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1880690d-61e2-4082-8fec-0e8b3d39d200 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpql7w5p0g/runtime/kernel-1880690d-61e2-4082-8fec-0e8b3d39d200.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39795 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38351 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1880690d-61e2-4082-8fec-0e8b3d39d200, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.170000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.290000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpql7w5p0g/runtime/kernel-2d31960a-320d-4ed6-8d39-8138e1a4f9c9.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55077 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54905 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d31960a-320d-4ed6-8d39-8138e1a4f9c9, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.320000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 2d31960a-320d-4ed6-8d39-8138e1a4f9c9 265s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/2d31960a-320d-4ed6-8d39-8138e1a4f9c9/interrupt (::1) 0.430000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 265s yield maybe_future(km.restart_kernel(kernel_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 265s result = coro.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 265s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 265s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 265s yield self # This tells Task to wait for completion. 265s ^^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 265s future.result() 265s ~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 265s await ensure_async(kernel.restart_kernel(now=now)) 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 265s await self._async_shutdown_kernel(now=now, restart=True) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/2d31960a-320d-4ed6-8d39-8138e1a4f9c9/restart (::1) 3.340000ms referer=None 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1880690d-61e2-4082-8fec-0e8b3d39d200 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1880690d-61e2-4082-8fec-0e8b3d39d200 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1880690d-61e2-4082-8fec-0e8b3d39d200 (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1880690d-61e2-4082-8fec-0e8b3d39d200', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 265s future.result() 265s ~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 265s yield maybe_future(km.shutdown_kernel(kernel_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 265s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 265s raise km.ready.exception() # type: ignore[misc] 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1880690d-61e2-4082-8fec-0e8b3d39d200 (::1) 5.050000ms referer=None 265s --------------------------- Captured stderr teardown --------------------------- 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 265s from ipykernel import kernelapp as app 265s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 265s from .connect import * # noqa: F403 265s ^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 265s import jupyter_client 265s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 265s from .asynchronous import AsyncKernelClient 265s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 265s from .client import AsyncKernelClient # noqa 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 265s import zmq.asyncio 265s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 265s from zmq import sugar 265s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 265s from zmq.sugar import context, frame, poll, socket, tracker, version 265s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 22, in 265s from .attrsettr import AttributeSetter, OptValT 265s File "/usr/lib/python3/dist-packages/zmq/sugar/attrsettr.py", line 16, in 265s class AttributeSetter: 265s ...<59 lines>... 265s raise NotImplementedError("override in subclass") 265s KeyboardInterrupt 265s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 265s 265s @self.addCleanup 265s def cleanup_sessions(): 265s for session in self.sess_api.list().json(): 265s > self.sess_api.delete(session['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ----------------------------- Captured stderr call ----------------------------- 265s Traceback (most recent call last): 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyg5oebda/runtime/kernel-bed090a1-7d96-4d7e-89ed-6d54c8c16b70.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47547 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48943 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: bed090a1-7d96-4d7e-89ed-6d54c8c16b70, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.420000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.390000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.230000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82475863-3cd6-4c81-ab5f-7196d1fa5ed1 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82475863-3cd6-4c81-ab5f-7196d1fa5ed1 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/810359d0-f05d-454c-b4f4-b91ea6935bc7 (::1) 0.530000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bed090a1-7d96-4d7e-89ed-6d54c8c16b70 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bed090a1-7d96-4d7e-89ed-6d54c8c16b70 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 265s yield maybe_future(sm.delete_session(session_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 265s yielded = self.gen.send(value) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 265s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 265s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 265s stopper = ensure_async(km.shutdown_kernel(now, restart)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s --------------------------- Captured stderr teardown --------------------------- 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 265s from ipykernel import kernelapp as app 265s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 265s from .connect import * # noqa: F403 265s ^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 265s import json 265s File "", line 1357, in _find_and_load 265s File "", line 417, in __enter__ 265s File "", line 426, in _get_module_lock 265s KeyboardInterrupt 265s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 265s 265s @self.addCleanup 265s def cleanup_sessions(): 265s for session in self.sess_api.list().json(): 265s > self.sess_api.delete(session['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ----------------------------- Captured stderr call ----------------------------- 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 265s from ipykernel import kernelapp as app 265s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 265s from .connect import * # noqa: F403 265s ^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 265s import jupyter_client 265s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 9, in 265s from .manager import AsyncKernelManager, KernelManager, run_kernel 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 36, in 265s from . import kernelspec 265s File "/usr/lib/python3/dist-packages/jupyter_client/kernelspec.py", line 18, in 265s from .provisioning import KernelProvisionerFactory as KPF # noqa 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/provisioning/__init__.py", line 2, in 265s from .local_provisioner import LocalProvisioner # noqa 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/provisioning/local_provisioner.py", line 14, in 265s from .provisioner_base import KernelProvisionerBase 265s File "", line 645, in parent 265s KeyboardInterrupt 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc57_c4e0/runtime/kernel-7ec5218a-e26e-44bc-bc40-5965109d94dd.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48179 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50497 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ec5218a-e26e-44bc-bc40-5965109d94dd, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.240000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.100000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 184.910000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.440000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 42c54a56-395a-4670-948d-56137225003a 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42c54a56-395a-4670-948d-56137225003a 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e80c102c-1d83-4237-b544-822500939363 (::1) 1.380000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ec5218a-e26e-44bc-bc40-5965109d94dd 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec5218a-e26e-44bc-bc40-5965109d94dd 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 265s future.result() 265s ~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 265s yield maybe_future(sm.delete_session(session_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 265s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 265s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 265s raise km.ready.exception() # type: ignore[misc] 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s =================================== FAILURES =================================== 265s ______________________ KernelAPITest.test_default_kernel _______________________ 265s 265s self = 265s 265s def tearDown(self): 265s for k in self.kern_api.list().json(): 265s > self.kern_api.shutdown(k['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9b3b017e-3236-493f-aeb5-7c863737d723 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ------------------------------ Captured log setup ------------------------------ 265s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpzgux7tmo/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpzgux7tmo/etc/jupyter'] for config files 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzgux7tmo/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzgux7tmo/config 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzgux7tmo/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzgux7tmo/config 265s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpzgux7tmo/notebooks 265s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 265s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 265s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 265s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 265s WARNING NotebookApp:handlers.py:612 Forbidden 265s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.240000ms referer=None 265s ----------------------------- Captured stderr call ----------------------------- 265s Traceback (most recent call last): 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzgux7tmo/runtime/kernel-9b3b017e-3236-493f-aeb5-7c863737d723.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54911 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54931 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9b3b017e-3236-493f-aeb5-7c863737d723, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 45.550000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.430000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9b3b017e-3236-493f-aeb5-7c863737d723 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9b3b017e-3236-493f-aeb5-7c863737d723 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9b3b017e-3236-493f-aeb5-7c863737d723 (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9b3b017e-3236-493f-aeb5-7c863737d723', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 265s yielded = ctx_run(next, result) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 265s yield maybe_future(km.shutdown_kernel(kernel_id)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 265s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 265s stopper = ensure_async(km.shutdown_kernel(now, restart)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9b3b017e-3236-493f-aeb5-7c863737d723 (::1) 61.150000ms referer=None 265s --------------------------- Captured stderr teardown --------------------------- 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 265s from ipykernel import kernelapp as app 265s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 265s from .connect import * # noqa: F403 265s ^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 265s import jupyter_client 265s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 265s from .asynchronous import AsyncKernelClient 265s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 265s from .client import AsyncKernelClient # noqa 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 265s import zmq.asyncio 265s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 265s import asyncio 265s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 265s from .base_events import * 265s File "/usr/lib/python3.13/asyncio/base_events.py", line 20, in 265s import heapq 265s File "", line 1360, in _find_and_load 265s File "", line 1331, in _find_and_load_unlocked 265s File "", line 935, in _load_unlocked 265s File "", line 1019, in exec_module 265s File "", line 1115, in get_code 265s File "", line 1214, in get_data 265s KeyboardInterrupt 265s ______________________ KernelAPITest.test_kernel_handler _______________________ 265s 265s self = 265s 265s def test_kernel_handler(self): 265s # GET kernel with given id 265s kid = self.kern_api.start().json()['id'] 265s r = self.kern_api.get(kid) 265s kern1 = r.json() 265s self.assertEqual(r.status_code, 200) 265s assert isinstance(kern1, dict) 265s self.assertIn('id', kern1) 265s self.assertEqual(kern1['id'], kid) 265s 265s # Request a bad kernel id and check that a JSON 265s # message is returned! 265s bad_id = '111-111-111-111-111' 265s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 265s self.kern_api.get(bad_id) 265s 265s # DELETE kernel with id 265s > r = self.kern_api.shutdown(kid) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/bf4c0808-323a-42ba-bfe7-4bd067caa4aa 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ----------------------------- Captured stderr call ----------------------------- 265s Could not import runpy module 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzgux7tmo/runtime/kernel-bf4c0808-323a-42ba-bfe7-4bd067caa4aa.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36067 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33275 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: bf4c0808-323a-42ba-bfe7-4bd067caa4aa, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.410000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/bf4c0808-323a-42ba-bfe7-4bd067caa4aa (::1) 1.230000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s 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 265s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 265s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.430000ms referer=None 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bf4c0808-323a-42ba-bfe7-4bd067caa4aa 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bf4c0808-323a-42ba-bfe7-4bd067caa4aa 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/bf4c0808-323a-42ba-bfe7-4bd067caa4aa (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/bf4c0808-323a-42ba-bfe7-4bd067caa4aa', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 265s yielded = ctx_run(next, result) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 265s yield maybe_future(km.shutdown_kernel(kernel_id)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 265s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 265s stopper = ensure_async(km.shutdown_kernel(now, restart)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/bf4c0808-323a-42ba-bfe7-4bd067caa4aa (::1) 7.360000ms referer=None 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9b3b017e-3236-493f-aeb5-7c863737d723 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9b3b017e-3236-493f-aeb5-7c863737d723 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9b3b017e-3236-493f-aeb5-7c863737d723 (::1) 3.430000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bf4c0808-323a-42ba-bfe7-4bd067caa4aa 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bf4c0808-323a-42ba-bfe7-4bd067caa4aa 265s --------------------------- Captured stderr teardown --------------------------- 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 15, in 265s import importlib.util 265s File "", line 1360, in _find_and_load 265s File "", line 1331, in _find_and_load_unlocked 265s File "", line 935, in _load_unlocked 265s File "", line 1019, in exec_module 265s File "", line 1152, in get_code 265s File "", line 781, in _compile_bytecode 265s KeyboardInterrupt 265s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 265s 265s self = 265s 265s def test_main_kernel_handler(self): 265s # POST request 265s r = self.kern_api.start() 265s kern1 = r.json() 265s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 265s self.assertEqual(r.status_code, 201) 265s self.assertIsInstance(kern1, dict) 265s 265s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 265s expected_csp = '; '.join([ 265s "frame-ancestors 'self'", 265s 'report-uri ' + report_uri, 265s "default-src 'none'" 265s ]) 265s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 265s 265s # GET request 265s r = self.kern_api.list() 265s self.assertEqual(r.status_code, 200) 265s assert isinstance(r.json(), list) 265s self.assertEqual(r.json()[0]['id'], kern1['id']) 265s self.assertEqual(r.json()[0]['name'], kern1['name']) 265s 265s # create another kernel and check that they both are added to the 265s # list of kernels from a GET request 265s kern2 = self.kern_api.start().json() 265s assert isinstance(kern2, dict) 265s r = self.kern_api.list() 265s kernels = r.json() 265s self.assertEqual(r.status_code, 200) 265s assert isinstance(kernels, list) 265s self.assertEqual(len(kernels), 2) 265s 265s # Interrupt a kernel 265s r = self.kern_api.interrupt(kern2['id']) 265s self.assertEqual(r.status_code, 204) 265s 265s # Restart a kernel 265s > r = self.kern_api.restart(kern2['id']) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 265s return self._req('POST', url_path_join(id, 'restart')) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7/restart 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ----------------------------- Captured stderr call ----------------------------- 265s Fatal Python error: init_import_site: Failed to import the site module 265s Python runtime state: initialized 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/site.py", line 735, in 265s main() 265s File "/usr/lib/python3.13/site.py", line 722, in main 265s known_paths = addsitepackages(known_paths) 265s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 265s addsitedir(sitedir, known_paths) 265s File "/usr/lib/python3.13/site.py", line 248, in addsitedir 265s names = os.listdir(sitedir) 265s KeyboardInterrupt 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 265s from ipykernel import kernelapp as app 265s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 265s from .connect import * # noqa: F403 265s ^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 265s from typing import TYPE_CHECKING, Any 265s File "/usr/lib/python3.13/typing.py", line 3585, in 265s class TextIO(IO[str]): 265s ...<31 lines>... 265s pass 265s File "/usr/lib/python3.13/typing.py", line 3602, in TextIO 265s def errors(self) -> Optional[str]: 265s ~~~~~~~~^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 429, in inner 265s return _caches[func](*args, **kwds) 265s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 576, in __getitem__ 265s return self._getitem(self, parameters) 265s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 810, in Optional 265s return Union[arg, type(None)] 265s ~~~~~^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 429, in inner 265s return _caches[func](*args, **kwds) 265s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 576, in __getitem__ 265s return self._getitem(self, parameters) 265s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3.13/typing.py", line 794, in Union 265s return _UnionGenericAlias(self, parameters, name="Optional") 265s KeyboardInterrupt 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzgux7tmo/runtime/kernel-8f4f1c22-22b8-4b0c-977d-a06b171fad5d.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48109 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51131 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8f4f1c22-22b8-4b0c-977d-a06b171fad5d, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 27.020000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzgux7tmo/runtime/kernel-9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50895 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34893 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.610000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7 265s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7/interrupt (::1) 0.630000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 265s yield maybe_future(km.restart_kernel(kernel_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 265s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 265s await ensure_async(kernel.restart_kernel(now=now)) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 265s await self._async_shutdown_kernel(now=now, restart=True) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7/restart (::1) 4.690000ms referer=None 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.450000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f4f1c22-22b8-4b0c-977d-a06b171fad5d 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f4f1c22-22b8-4b0c-977d-a06b171fad5d 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8f4f1c22-22b8-4b0c-977d-a06b171fad5d (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8f4f1c22-22b8-4b0c-977d-a06b171fad5d', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 265s yielded = ctx_run(next, result) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 265s yield maybe_future(km.shutdown_kernel(kernel_id)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 265s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 265s stopper = ensure_async(km.shutdown_kernel(now, restart)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8f4f1c22-22b8-4b0c-977d-a06b171fad5d (::1) 11.550000ms referer=None 265s ________________________ KernelAPITest.test_no_kernels _________________________ 265s 265s self = 265s 265s def test_no_kernels(self): 265s """Make sure there are no kernels running at the start""" 265s kernels = self.kern_api.list().json() 265s > self.assertEqual(kernels, []) 265s E AssertionError: Lists differ: [{'id': '8f4f1c22-22b8-4b0c-977d-a06b171fa[281 chars]: 0}] != [] 265s E 265s E First list contains 2 additional elements. 265s E First extra element 0: 265s E {'id': '8f4f1c22-22b8-4b0c-977d-a06b171fad5d', 'name': 'python3', 'last_activity': '2026-02-02T09:05:03.193567Z', 'execution_state': 'starting', 'connections': 0} 265s E 265s E + [] 265s E - [{'connections': 0, 265s E - 'execution_state': 'starting', 265s E - 'id': '8f4f1c22-22b8-4b0c-977d-a06b171fad5d', 265s E - 'last_activity': '2026-02-02T09:05:03.193567Z', 265s E - 'name': 'python3'}, 265s E - {'connections': 0, 265s E - 'execution_state': 'starting', 265s E - 'id': '9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7', 265s E - 'last_activity': '2026-02-02T09:05:03.213440Z', 265s E - 'name': 'python3'}] 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.510000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.170000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f4f1c22-22b8-4b0c-977d-a06b171fad5d 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f4f1c22-22b8-4b0c-977d-a06b171fad5d 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8f4f1c22-22b8-4b0c-977d-a06b171fad5d (::1) 5.130000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9ef23a60-2f3e-42a5-8c3c-e85c091c0fb7 (::1) 1.360000ms 265s ---------------------------- Captured log teardown ----------------------------- 265s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 265s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 265s _____________________ AsyncKernelAPITest.test_connections ______________________ 265s 265s self = 265s 265s def tearDown(self): 265s for k in self.kern_api.list().json(): 265s > self.kern_api.shutdown(k['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ------------------------------ Captured log setup ------------------------------ 265s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpql7w5p0g/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpql7w5p0g/etc/jupyter'] for config files 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpql7w5p0g/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpql7w5p0g/config 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpql7w5p0g/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpql7w5p0g/config 265s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpql7w5p0g/notebooks 265s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 265s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 265s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 265s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 265s WARNING NotebookApp:handlers.py:612 Forbidden 265s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.670000ms referer=None 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpql7w5p0g/runtime/kernel-eae0e0cc-10ca-4f76-a494-ff509648ad4d.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47179 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33899 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: eae0e0cc-10ca-4f76-a494-ff509648ad4d, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.370000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d (::1) 0.970000ms 265s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d/channels 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 265s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46701 265s DEBUG NotebookApp:kernelmanager.py:423 activity on eae0e0cc-10ca-4f76-a494-ff509648ad4d: status (starting) 265s DEBUG NotebookApp:kernelmanager.py:423 activity on eae0e0cc-10ca-4f76-a494-ff509648ad4d: status (busy) 265s 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/'}]} 265s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel eae0e0cc-10ca-4f76-a494-ff509648ad4d) to 5.4 (client). 265s DEBUG NotebookApp:kernelmanager.py:423 activity on eae0e0cc-10ca-4f76-a494-ff509648ad4d: status (idle) 265s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d/channels (::1) 737.960000ms 265s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d/channels 265s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33899 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46701 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47179 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50527 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46701 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47179 265s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 265s Setting websocket_ping_timeout=30000 265s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d (::1) 0.540000ms 265s DEBUG NotebookApp:kernelmanager.py:423 activity on eae0e0cc-10ca-4f76-a494-ff509648ad4d: status (busy) 265s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s DEBUG NotebookApp:kernelmanager.py:423 activity on eae0e0cc-10ca-4f76-a494-ff509648ad4d: status (busy) 265s DEBUG NotebookApp:kernelmanager.py:423 activity on eae0e0cc-10ca-4f76-a494-ff509648ad4d: status (idle) 265s DEBUG NotebookApp:kernelmanager.py:423 activity on eae0e0cc-10ca-4f76-a494-ff509648ad4d: status (idle) 265s DEBUG NotebookApp:handlers.py:579 Websocket closed eae0e0cc-10ca-4f76-a494-ff509648ad4d:7c6c0ec3-1e35bc96d351c88f647be22f 265s INFO NotebookApp:kernelmanager.py:222 Starting buffering for eae0e0cc-10ca-4f76-a494-ff509648ad4d:7c6c0ec3-1e35bc96d351c88f647be22f 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d (::1) 0.510000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d (::1) 0.430000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 265s future.result() 265s ~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 265s yield maybe_future(km.shutdown_kernel(kernel_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 265s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 265s raise km.ready.exception() # type: ignore[misc] 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d (::1) 7.530000ms referer=None 265s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 265s 265s self = 265s 265s def tearDown(self): 265s for k in self.kern_api.list().json(): 265s > self.kern_api.shutdown(k['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e822d373-a965-4ce4-a63e-3d6078cd4afc 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpql7w5p0g/runtime/kernel-e822d373-a965-4ce4-a63e-3d6078cd4afc.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53751 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42621 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: e822d373-a965-4ce4-a63e-3d6078cd4afc, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.410000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/eae0e0cc-10ca-4f76-a494-ff509648ad4d (::1) 0.440000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e822d373-a965-4ce4-a63e-3d6078cd4afc 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e822d373-a965-4ce4-a63e-3d6078cd4afc 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e822d373-a965-4ce4-a63e-3d6078cd4afc (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e822d373-a965-4ce4-a63e-3d6078cd4afc', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 265s future.result() 265s ~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 265s yield maybe_future(km.shutdown_kernel(kernel_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 265s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 265s raise km.ready.exception() # type: ignore[misc] 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e822d373-a965-4ce4-a63e-3d6078cd4afc (::1) 4.690000ms referer=None 265s --------------------------- Captured stderr teardown --------------------------- 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 265s from pathlib import Path 265s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 265s from ._local import * 265s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 265s class PureWindowsPath(PurePath): 265s ...<7 lines>... 265s __slots__ = () 265s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 265s import ntpath 265s File "/usr/lib/python3.13/ntpath.py", line 514, in 265s from nt import _getfullpathname 265s File "", line 1360, in _find_and_load 265s File "", line 1322, in _find_and_load_unlocked 265s File "", line 1256, in _find_spec 265s KeyboardInterrupt 265s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 265s 265s self = 265s 265s def test_kernel_handler(self): 265s # GET kernel with given id 265s kid = self.kern_api.start().json()['id'] 265s r = self.kern_api.get(kid) 265s kern1 = r.json() 265s self.assertEqual(r.status_code, 200) 265s assert isinstance(kern1, dict) 265s self.assertIn('id', kern1) 265s self.assertEqual(kern1['id'], kid) 265s 265s # Request a bad kernel id and check that a JSON 265s # message is returned! 265s bad_id = '111-111-111-111-111' 265s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 265s self.kern_api.get(bad_id) 265s 265s # DELETE kernel with id 265s > r = self.kern_api.shutdown(kid) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5c3a5c20-7707-4607-9409-1854200e1c0c 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ----------------------------- Captured stderr call ----------------------------- 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 265s from pathlib import Path 265s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 265s from ._local import * 265s File "", line 1360, in _find_and_load 265s File "", line 1331, in _find_and_load_unlocked 265s File "", line 935, in _load_unlocked 265s File "", line 1019, in exec_module 265s File "", line 1152, in get_code 265s File "", line 781, in _compile_bytecode 265s KeyboardInterrupt 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpql7w5p0g/runtime/kernel-5c3a5c20-7707-4607-9409-1854200e1c0c.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56873 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42303 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c3a5c20-7707-4607-9409-1854200e1c0c, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.710000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/5c3a5c20-7707-4607-9409-1854200e1c0c (::1) 0.420000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s 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 265s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 265s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.410000ms referer=None 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c3a5c20-7707-4607-9409-1854200e1c0c 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c3a5c20-7707-4607-9409-1854200e1c0c 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5c3a5c20-7707-4607-9409-1854200e1c0c (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5c3a5c20-7707-4607-9409-1854200e1c0c', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 265s future.result() 265s ~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 265s yield maybe_future(km.shutdown_kernel(kernel_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 265s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 265s raise km.ready.exception() # type: ignore[misc] 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5c3a5c20-7707-4607-9409-1854200e1c0c (::1) 10.020000ms referer=None 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e822d373-a965-4ce4-a63e-3d6078cd4afc 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e822d373-a965-4ce4-a63e-3d6078cd4afc 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e822d373-a965-4ce4-a63e-3d6078cd4afc (::1) 0.480000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c3a5c20-7707-4607-9409-1854200e1c0c 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c3a5c20-7707-4607-9409-1854200e1c0c 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5c3a5c20-7707-4607-9409-1854200e1c0c (::1) 0.460000ms 265s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 265s 265s self = 265s 265s def test_main_kernel_handler(self): 265s # POST request 265s r = self.kern_api.start() 265s kern1 = r.json() 265s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 265s self.assertEqual(r.status_code, 201) 265s self.assertIsInstance(kern1, dict) 265s 265s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 265s expected_csp = '; '.join([ 265s "frame-ancestors 'self'", 265s 'report-uri ' + report_uri, 265s "default-src 'none'" 265s ]) 265s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 265s 265s # GET request 265s r = self.kern_api.list() 265s self.assertEqual(r.status_code, 200) 265s assert isinstance(r.json(), list) 265s self.assertEqual(r.json()[0]['id'], kern1['id']) 265s self.assertEqual(r.json()[0]['name'], kern1['name']) 265s 265s # create another kernel and check that they both are added to the 265s # list of kernels from a GET request 265s kern2 = self.kern_api.start().json() 265s assert isinstance(kern2, dict) 265s r = self.kern_api.list() 265s kernels = r.json() 265s self.assertEqual(r.status_code, 200) 265s assert isinstance(kernels, list) 265s self.assertEqual(len(kernels), 2) 265s 265s # Interrupt a kernel 265s r = self.kern_api.interrupt(kern2['id']) 265s self.assertEqual(r.status_code, 204) 265s 265s # Restart a kernel 265s > r = self.kern_api.restart(kern2['id']) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 265s return self._req('POST', url_path_join(id, 'restart')) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/2d31960a-320d-4ed6-8d39-8138e1a4f9c9/restart 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpql7w5p0g/runtime/kernel-1880690d-61e2-4082-8fec-0e8b3d39d200.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39795 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38351 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1880690d-61e2-4082-8fec-0e8b3d39d200, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.170000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.290000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpql7w5p0g/runtime/kernel-2d31960a-320d-4ed6-8d39-8138e1a4f9c9.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55077 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54905 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2d31960a-320d-4ed6-8d39-8138e1a4f9c9, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.320000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 2d31960a-320d-4ed6-8d39-8138e1a4f9c9 265s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/2d31960a-320d-4ed6-8d39-8138e1a4f9c9/interrupt (::1) 0.430000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 265s yield maybe_future(km.restart_kernel(kernel_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 265s result = coro.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 265s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 265s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 265s yield self # This tells Task to wait for completion. 265s ^^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 265s future.result() 265s ~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 265s await ensure_async(kernel.restart_kernel(now=now)) 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 265s await self._async_shutdown_kernel(now=now, restart=True) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/2d31960a-320d-4ed6-8d39-8138e1a4f9c9/restart (::1) 3.340000ms referer=None 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1880690d-61e2-4082-8fec-0e8b3d39d200 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1880690d-61e2-4082-8fec-0e8b3d39d200 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1880690d-61e2-4082-8fec-0e8b3d39d200 (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1880690d-61e2-4082-8fec-0e8b3d39d200', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 265s future.result() 265s ~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 265s yield maybe_future(km.shutdown_kernel(kernel_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 265s raise self._exception.with_traceback(self._exception_tb) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 265s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 265s raise km.ready.exception() # type: ignore[misc] 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 265s await kernel_awaitable 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 265s result = await obj 265s ^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ERROR NotebookApp:log.py:55 { 265s "Host": "localhost:12341", 265s "Accept": "*/*", 265s "User-Agent": "python-requests/2.32.5" 265s } 265s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1880690d-61e2-4082-8fec-0e8b3d39d200 (::1) 5.050000ms referer=None 265s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 265s 265s self = 265s 265s def test_no_kernels(self): 265s """Make sure there are no kernels running at the start""" 265s kernels = self.kern_api.list().json() 265s > self.assertEqual(kernels, []) 265s E AssertionError: Lists differ: [{'id': '1880690d-61e2-4082-8fec-0e8b3d39d[281 chars]: 0}] != [] 265s E 265s E First list contains 2 additional elements. 265s E First extra element 0: 265s E {'id': '1880690d-61e2-4082-8fec-0e8b3d39d200', 'name': 'python3', 'last_activity': '2026-02-02T09:05:04.357840Z', 'execution_state': 'starting', 'connections': 0} 265s E 265s E + [] 265s E - [{'connections': 0, 265s E - 'execution_state': 'starting', 265s E - 'id': '1880690d-61e2-4082-8fec-0e8b3d39d200', 265s E - 'last_activity': '2026-02-02T09:05:04.357840Z', 265s E - 'name': 'python3'}, 265s E - {'connections': 0, 265s E - 'execution_state': 'starting', 265s E - 'id': '2d31960a-320d-4ed6-8d39-8138e1a4f9c9', 265s E - 'last_activity': '2026-02-02T09:05:04.383967Z', 265s E - 'name': 'python3'}] 265s 265s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.050000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.900000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1880690d-61e2-4082-8fec-0e8b3d39d200 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1880690d-61e2-4082-8fec-0e8b3d39d200 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1880690d-61e2-4082-8fec-0e8b3d39d200 (::1) 0.940000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2d31960a-320d-4ed6-8d39-8138e1a4f9c9 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2d31960a-320d-4ed6-8d39-8138e1a4f9c9 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2d31960a-320d-4ed6-8d39-8138e1a4f9c9 (::1) 1.590000ms 265s ---------------------------- Captured log teardown ----------------------------- 265s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c3a5c20-7707-4607-9409-1854200e1c0c 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e822d373-a965-4ce4-a63e-3d6078cd4afc 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eae0e0cc-10ca-4f76-a494-ff509648ad4d 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1880690d-61e2-4082-8fec-0e8b3d39d200 265s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 265s __________________________ SessionAPITest.test_create __________________________ 265s 265s @self.addCleanup 265s def cleanup_sessions(): 265s for session in self.sess_api.list().json(): 265s > self.sess_api.delete(session['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1a74546b-edd3-4c75-ae95-f0dfbf1b7c92 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ------------------------------ Captured log setup ------------------------------ 265s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpyg5oebda/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpyg5oebda/etc/jupyter'] for config files 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpyg5oebda/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpyg5oebda/config 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpyg5oebda/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 265s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpyg5oebda/config 265s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpyg5oebda/notebooks 265s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 265s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 265s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 265s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 265s WARNING NotebookApp:handlers.py:612 Forbidden 265s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 8.110000ms referer=None 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.830000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyg5oebda/runtime/kernel-52185f77-fd66-460f-86e0-38bbc1282176.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51427 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58119 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 52185f77-fd66-460f-86e0-38bbc1282176, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpyg5oebda/notebooks/foo'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 28.260000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.680000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/1a74546b-edd3-4c75-ae95-f0dfbf1b7c92 (::1) 0.680000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.600000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 52185f77-fd66-460f-86e0-38bbc1282176 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 52185f77-fd66-460f-86e0-38bbc1282176 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1a74546b-edd3-4c75-ae95-f0dfbf1b7c92 (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1a74546b-edd3-4c75-ae95-f0dfbf1b7c92', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 265s yield maybe_future(sm.delete_session(session_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 265s yielded = self.gen.send(value) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 265s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 265s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 265s stopper = ensure_async(km.shutdown_kernel(now, restart)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s --------------------------- Captured stderr teardown --------------------------- 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 265s from ipykernel import kernelapp as app 265s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 265s from .connect import * # noqa: F403 265s ^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 265s import jupyter_client 265s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 265s from .asynchronous import AsyncKernelClient 265s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 265s from .client import AsyncKernelClient # noqa 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 265s import zmq.asyncio 265s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 265s from zmq import backend 265s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 7, in 265s import platform 265s File "/usr/lib/python3.13/platform.py", line 503, in 265s IOSVersionInfo = collections.namedtuple( 265s "IOSVersionInfo", 265s ["system", "release", "model", "is_simulator"] 265s ) 265s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 265s __new__ = eval(code, namespace) 265s File "", line 0, in 265s KeyboardInterrupt 265s __________________ SessionAPITest.test_create_console_session __________________ 265s 265s @self.addCleanup 265s def cleanup_sessions(): 265s for session in self.sess_api.list().json(): 265s > self.sess_api.delete(session['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0b838fe6-cb17-463c-b39c-bc9c46545259 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ----------------------------- Captured stderr call ----------------------------- 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 265s from ipykernel import kernelapp as app 265s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 265s from .connect import * # noqa: F403 265s ^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 265s import json 265s File "/usr/lib/python3.13/json/__init__.py", line 106, in 265s from .decoder import JSONDecoder, JSONDecodeError 265s File "/usr/lib/python3.13/json/decoder.py", line 5, in 265s from json import scanner 265s File "/usr/lib/python3.13/json/scanner.py", line 5, in 265s from _json import make_scanner as c_make_scanner 265s File "", line 1357, in _find_and_load 265s File "", line 418, in __enter__ 265s File "", line 316, in acquire 265s KeyboardInterrupt 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyg5oebda/runtime/kernel-8ef02024-9e5f-48f8-b1d3-2b7c2dac80fa.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42829 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55071 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8ef02024-9e5f-48f8-b1d3-2b7c2dac80fa, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpyg5oebda/notebooks/foo'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.060000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.180000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 52185f77-fd66-460f-86e0-38bbc1282176 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 52185f77-fd66-460f-86e0-38bbc1282176 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1a74546b-edd3-4c75-ae95-f0dfbf1b7c92 (::1) 2.160000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ef02024-9e5f-48f8-b1d3-2b7c2dac80fa 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ef02024-9e5f-48f8-b1d3-2b7c2dac80fa 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0b838fe6-cb17-463c-b39c-bc9c46545259 (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0b838fe6-cb17-463c-b39c-bc9c46545259', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 265s yield maybe_future(sm.delete_session(session_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 265s yielded = self.gen.send(value) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 265s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 265s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 265s stopper = ensure_async(km.shutdown_kernel(now, restart)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s ____________________ SessionAPITest.test_create_deprecated _____________________ 265s 265s @self.addCleanup 265s def cleanup_sessions(): 265s for session in self.sess_api.list().json(): 265s > self.sess_api.delete(session['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e6234c05-646f-4252-809a-c25ad2331956 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyg5oebda/runtime/kernel-303c1aa9-458f-4696-81dc-fb69548562c8.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43217 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60207 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 303c1aa9-458f-4696-81dc-fb69548562c8, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpyg5oebda/notebooks/foo'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 26.170000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ef02024-9e5f-48f8-b1d3-2b7c2dac80fa 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ef02024-9e5f-48f8-b1d3-2b7c2dac80fa 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0b838fe6-cb17-463c-b39c-bc9c46545259 (::1) 1.450000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 303c1aa9-458f-4696-81dc-fb69548562c8 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 303c1aa9-458f-4696-81dc-fb69548562c8 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e6234c05-646f-4252-809a-c25ad2331956 (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e6234c05-646f-4252-809a-c25ad2331956', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 265s yield maybe_future(sm.delete_session(session_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 265s yielded = self.gen.send(value) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 265s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 265s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 265s stopper = ensure_async(km.shutdown_kernel(now, restart)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 265s raise e 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s WARNING NotebookApp:handlers.py:612 Unhandled error 265s --------------------------- Captured stderr teardown --------------------------- 265s Traceback (most recent call last): 265s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 265s return _run_code(code, main_globals, None, 265s "__main__", mod_spec) 265s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 265s exec(code, run_globals) 265s ~~~~^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 265s from pathlib import Path 265s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 265s from ._local import * 265s File "", line 1360, in _find_and_load 265s File "", line 1331, in _find_and_load_unlocked 265s File "", line 935, in _load_unlocked 265s File "", line 1019, in exec_module 265s File "", line 1152, in get_code 265s File "", line 781, in _compile_bytecode 265s KeyboardInterrupt 265s ___________________ SessionAPITest.test_create_file_session ____________________ 265s 265s @self.addCleanup 265s def cleanup_sessions(): 265s for session in self.sess_api.list().json(): 265s > self.sess_api.delete(session['id']) 265s 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 265s return self._req('DELETE', id) 265s ^^^^^^^^^^^^^^^^^^^^^^^ 265s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 265s response.raise_for_status() 265s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 265s 265s self = 265s 265s def raise_for_status(self): 265s """Raises :class:`HTTPError`, if one occurred.""" 265s 265s http_error_msg = "" 265s if isinstance(self.reason, bytes): 265s # We attempt to decode utf-8 first because some servers 265s # choose to localize their reason strings. If the string 265s # isn't utf-8, we fall back to iso-8859-1 for all other 265s # encodings. (See PR #3538) 265s try: 265s reason = self.reason.decode("utf-8") 265s except UnicodeDecodeError: 265s reason = self.reason.decode("iso-8859-1") 265s else: 265s reason = self.reason 265s 265s if 400 <= self.status_code < 500: 265s http_error_msg = ( 265s f"{self.status_code} Client Error: {reason} for url: {self.url}" 265s ) 265s 265s elif 500 <= self.status_code < 600: 265s http_error_msg = ( 265s f"{self.status_code} Server Error: {reason} for url: {self.url}" 265s ) 265s 265s if http_error_msg: 265s > raise HTTPError(http_error_msg, response=self) 265s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/810359d0-f05d-454c-b4f4-b91ea6935bc7 265s 265s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 265s ------------------------------ Captured log call ------------------------------- 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 265s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyg5oebda/runtime/kernel-82475863-3cd6-4c81-ab5f-7196d1fa5ed1.json'] 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54027 265s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51871 265s INFO NotebookApp:kernelmanager.py:179 Kernel started: 82475863-3cd6-4c81-ab5f-7196d1fa5ed1, name: python3 265s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpyg5oebda/notebooks/foo'} 265s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.370000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.610000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 303c1aa9-458f-4696-81dc-fb69548562c8 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 303c1aa9-458f-4696-81dc-fb69548562c8 265s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e6234c05-646f-4252-809a-c25ad2331956 (::1) 0.610000ms 265s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 265s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82475863-3cd6-4c81-ab5f-7196d1fa5ed1 265s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82475863-3cd6-4c81-ab5f-7196d1fa5ed1 265s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 265s out = await method(self, *args, **kwargs) 265s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 265s await self._async_finish_shutdown(restart=restart) 265s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 265s await asyncio.wait_for( 265s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 265s ) 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 265s async with timeouts.timeout(timeout): 265s ~~~~~~~~~~~~~~~~^^^^^^^^^ 265s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 265s raise RuntimeError("Timeout should be used inside a task") 265s RuntimeError: Timeout should be used inside a task 265s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/810359d0-f05d-454c-b4f4-b91ea6935bc7 (::1) 265s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/810359d0-f05d-454c-b4f4-b91ea6935bc7', version='HTTP/1.1', remote_ip='::1') 265s Traceback (most recent call last): 265s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 265s result = await result 265s ^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 265s yielded = self.gen.throw(exc) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 265s yield maybe_future(sm.delete_session(session_id)) 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 265s value = future.result() 265s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 265s yielded = self.gen.send(value) 265s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 265s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 265s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 265s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 265s raise self._exception 265s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 265s result = coro.send(None) 265s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 265s stopper = ensure_async(km.shutdown_kernel(now, restart)) 265s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 265s return _runner_map[name].run(inner) 265s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 265s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 265s return fut.result(None) 265s ~~~~~~~~~~^^^^^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 265s return self.__get_result() 265s ~~~~~~~~~~~~~~~~~^^ 265s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 266s raise self._exception 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s --------------------------- Captured stderr teardown --------------------------- 266s Traceback (most recent call last): 266s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 266s return _run_code(code, main_globals, None, 266s "__main__", mod_spec) 266s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 266s exec(code, run_globals) 266s ~~~~^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 266s from pathlib import Path 266s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 266s from ._abc import * 266s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 266s from glob import _Globber, _no_recurse_symlinks 266s File "/usr/lib/python3.13/glob.py", line 5, in 266s import re 266s File "/usr/lib/python3.13/re/__init__.py", line 126, in 266s from . import _compiler, _parser 266s File "", line 1360, in _find_and_load 266s File "", line 1331, in _find_and_load_unlocked 266s File "", line 935, in _load_unlocked 266s File "", line 1019, in exec_module 266s File "", line 1152, in get_code 266s File "", line 781, in _compile_bytecode 266s KeyboardInterrupt 266s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 266s 266s self = 266s 266s def test_create_with_kernel_id(self): 266s # create a new kernel 266s r = self.request('POST', 'api/kernels') 266s r.raise_for_status() 266s kernel = r.json() 266s 266s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 266s self.assertEqual(resp.status_code, 201) 266s newsession = resp.json() 266s self.assertIn('id', newsession) 266s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 266s self.assertEqual(newsession['kernel']['id'], kernel['id']) 266s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 266s 266s sessions = self.sess_api.list().json() 266s > self.assertEqual(sessions, [newsession]) 266s E AssertionError: Lists differ: [{'id': '810359d0-f05d-454c-b4f4-b91ea6935bc7', 'p[553 chars]ne}}] != [{'id': 'c457ddad-5031-436c-bf1e-26c29d776eff', 'p[279 chars]ne}}] 266s E 266s E First differing element 0: 266s E {'id': '810359d0-f05d-454c-b4f4-b91ea6935bc7', 'p[218 chars]: 0}} 266s E {'id': 'c457ddad-5031-436c-bf1e-26c29d776eff', 'p[278 chars]one}} 266s E 266s E First list contains 1 additional elements. 266s E First extra element 1: 266s E {'id': 'c457ddad-5031-436c-bf1e-26c29d776eff', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'bed090a1-7d96-4d7e-89ed-6d54c8c16b70', 'name': 'python3', 'last_activity': '2026-02-02T09:05:05.048403Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 266s E 266s E Diff is 830 characters long. Set self.maxDiff to None to see it. 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 266s ----------------------------- Captured stderr call ----------------------------- 266s Traceback (most recent call last): 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyg5oebda/runtime/kernel-bed090a1-7d96-4d7e-89ed-6d54c8c16b70.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47547 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48943 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: bed090a1-7d96-4d7e-89ed-6d54c8c16b70, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.420000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.390000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.230000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82475863-3cd6-4c81-ab5f-7196d1fa5ed1 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82475863-3cd6-4c81-ab5f-7196d1fa5ed1 266s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/810359d0-f05d-454c-b4f4-b91ea6935bc7 (::1) 0.530000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bed090a1-7d96-4d7e-89ed-6d54c8c16b70 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bed090a1-7d96-4d7e-89ed-6d54c8c16b70 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 266s yielded = self.gen.send(value) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 266s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 266s return _runner_map[name].run(inner) 266s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 266s return fut.result(None) 266s ~~~~~~~~~~^^^^^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 266s return self.__get_result() 266s ~~~~~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 266s raise self._exception 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 266s stopper = ensure_async(km.shutdown_kernel(now, restart)) 266s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 266s return _runner_map[name].run(inner) 266s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 266s return fut.result(None) 266s ~~~~~~~~~~^^^^^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 266s return self.__get_result() 266s ~~~~~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 266s raise self._exception 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 266s 266s @self.addCleanup 266s def cleanup_sessions(): 266s for session in self.sess_api.list().json(): 266s > self.sess_api.delete(session['id']) 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 266s return self._req('DELETE', id) 266s ^^^^^^^^^^^^^^^^^^^^^^^ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 266s response.raise_for_status() 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s 266s self = 266s 266s def raise_for_status(self): 266s """Raises :class:`HTTPError`, if one occurred.""" 266s 266s http_error_msg = "" 266s if isinstance(self.reason, bytes): 266s # We attempt to decode utf-8 first because some servers 266s # choose to localize their reason strings. If the string 266s # isn't utf-8, we fall back to iso-8859-1 for all other 266s # encodings. (See PR #3538) 266s try: 266s reason = self.reason.decode("utf-8") 266s except UnicodeDecodeError: 266s reason = self.reason.decode("iso-8859-1") 266s else: 266s reason = self.reason 266s 266s if 400 <= self.status_code < 500: 266s http_error_msg = ( 266s f"{self.status_code} Client Error: {reason} for url: {self.url}" 266s ) 266s 266s elif 500 <= self.status_code < 600: 266s http_error_msg = ( 266s f"{self.status_code} Server Error: {reason} for url: {self.url}" 266s ) 266s 266s if http_error_msg: 266s > raise HTTPError(http_error_msg, response=self) 266s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff 266s 266s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 266s ----------------------------- Captured stderr call ----------------------------- 266s Traceback (most recent call last): 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.840000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyg5oebda/runtime/kernel-5b624e43-ef49-418a-a9db-8cda24f0f814.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55589 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37867 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5b624e43-ef49-418a-a9db-8cda24f0f814, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.750000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bed090a1-7d96-4d7e-89ed-6d54c8c16b70 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bed090a1-7d96-4d7e-89ed-6d54c8c16b70 266s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff (::1) 1.980000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b624e43-ef49-418a-a9db-8cda24f0f814 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b624e43-ef49-418a-a9db-8cda24f0f814 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 266s yielded = self.gen.send(value) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 266s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 266s return _runner_map[name].run(inner) 266s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 266s return fut.result(None) 266s ~~~~~~~~~~^^^^^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 266s return self.__get_result() 266s ~~~~~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 266s raise self._exception 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 266s stopper = ensure_async(km.shutdown_kernel(now, restart)) 266s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 266s return _runner_map[name].run(inner) 266s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 266s return fut.result(None) 266s ~~~~~~~~~~^^^^^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 266s return self.__get_result() 266s ~~~~~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 266s raise self._exception 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s ERROR NotebookApp:log.py:55 { 266s "Host": "localhost:12341", 266s "Accept": "*/*", 266s "User-Agent": "python-requests/2.32.5" 266s } 266s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff (::1) 6.630000ms referer=None 266s --------------------------- Captured stderr teardown --------------------------- 266s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 266s return _run_code(code, main_globals, None, 266s "__main__", mod_spec) 266s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 266s exec(code, run_globals) 266s ~~~~^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 266s from pathlib import Path 266s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 266s from ._abc import * 266s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 266s from glob import _Globber, _no_recurse_symlinks 266s File "/usr/lib/python3.13/glob.py", line 5, in 266s import re 266s File "/usr/lib/python3.13/re/__init__.py", line 303, in 266s _special_chars_map = {i: '\\' + chr(i) for i in b'()[]{}?*+-|^$\\.&~# \t\n\r\v\f'} 266s ~~~^^^ 266s KeyboardInterrupt 266s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 266s 266s @self.addCleanup 266s def cleanup_sessions(): 266s for session in self.sess_api.list().json(): 266s > self.sess_api.delete(session['id']) 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 266s return self._req('DELETE', id) 266s ^^^^^^^^^^^^^^^^^^^^^^^ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 266s response.raise_for_status() 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s 266s self = 266s 266s def raise_for_status(self): 266s """Raises :class:`HTTPError`, if one occurred.""" 266s 266s http_error_msg = "" 266s if isinstance(self.reason, bytes): 266s # We attempt to decode utf-8 first because some servers 266s # choose to localize their reason strings. If the string 266s # isn't utf-8, we fall back to iso-8859-1 for all other 266s # encodings. (See PR #3538) 266s try: 266s reason = self.reason.decode("utf-8") 266s except UnicodeDecodeError: 266s reason = self.reason.decode("iso-8859-1") 266s else: 266s reason = self.reason 266s 266s if 400 <= self.status_code < 500: 266s http_error_msg = ( 266s f"{self.status_code} Client Error: {reason} for url: {self.url}" 266s ) 266s 266s elif 500 <= self.status_code < 600: 266s http_error_msg = ( 266s f"{self.status_code} Server Error: {reason} for url: {self.url}" 266s ) 266s 266s if http_error_msg: 266s > raise HTTPError(http_error_msg, response=self) 266s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff 266s 266s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 266s ----------------------------- Captured stderr call ----------------------------- 266s Fatal Python error: init_import_site: Failed to import the site module 266s Python runtime state: initialized 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.650000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpyg5oebda/runtime/kernel-bbda2fe9-f85c-4662-8c4e-f0b104946214.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41555 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54397 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: bbda2fe9-f85c-4662-8c4e-f0b104946214, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpyg5oebda/notebooks/foo'} 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b624e43-ef49-418a-a9db-8cda24f0f814 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b624e43-ef49-418a-a9db-8cda24f0f814 266s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff (::1) 14.420000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.180000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bbda2fe9-f85c-4662-8c4e-f0b104946214 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bbda2fe9-f85c-4662-8c4e-f0b104946214 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c457ddad-5031-436c-bf1e-26c29d776eff', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 266s yielded = self.gen.send(value) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 266s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 266s return _runner_map[name].run(inner) 266s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 266s return fut.result(None) 266s ~~~~~~~~~~^^^^^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 266s return self.__get_result() 266s ~~~~~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 266s raise self._exception 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 266s stopper = ensure_async(km.shutdown_kernel(now, restart)) 266s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 266s return _runner_map[name].run(inner) 266s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 266s return fut.result(None) 266s ~~~~~~~~~~^^^^^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 266s return self.__get_result() 266s ~~~~~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 266s raise self._exception 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s --------------------------- Captured stderr teardown --------------------------- 266s Traceback (most recent call last): 266s File "/usr/lib/python3.13/site.py", line 735, in 266s main() 266s ~~~~^^ 266s File "/usr/lib/python3.13/site.py", line 722, in main 266s known_paths = addsitepackages(known_paths) 266s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 266s addsitedir(sitedir, known_paths) 266s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 266s addpackage(sitedir, name, known_paths) 266s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3.13/site.py", line 213, in addpackage 266s exec(line) 266s ~~~~^^^^^^ 266s File "", line 1, in 266s File "", line 1360, in _find_and_load 266s File "", line 1331, in _find_and_load_unlocked 266s File "", line 935, in _load_unlocked 266s File "", line 1019, in exec_module 266s File "", line 1115, in get_code 266s File "", line 1214, in get_data 266s KeyboardInterrupt 266s ---------------------------- Captured log teardown ----------------------------- 266s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bbda2fe9-f85c-4662-8c4e-f0b104946214 266s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 266s _______________________ AsyncSessionAPITest.test_create ________________________ 266s 266s @self.addCleanup 266s def cleanup_sessions(): 266s for session in self.sess_api.list().json(): 266s > self.sess_api.delete(session['id']) 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 266s return self._req('DELETE', id) 266s ^^^^^^^^^^^^^^^^^^^^^^^ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 266s response.raise_for_status() 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s 266s self = 266s 266s def raise_for_status(self): 266s """Raises :class:`HTTPError`, if one occurred.""" 266s 266s http_error_msg = "" 266s if isinstance(self.reason, bytes): 266s # We attempt to decode utf-8 first because some servers 266s # choose to localize their reason strings. If the string 266s # isn't utf-8, we fall back to iso-8859-1 for all other 266s # encodings. (See PR #3538) 266s try: 266s reason = self.reason.decode("utf-8") 266s except UnicodeDecodeError: 266s reason = self.reason.decode("iso-8859-1") 266s else: 266s reason = self.reason 266s 266s if 400 <= self.status_code < 500: 266s http_error_msg = ( 266s f"{self.status_code} Client Error: {reason} for url: {self.url}" 266s ) 266s 266s elif 500 <= self.status_code < 600: 266s http_error_msg = ( 266s f"{self.status_code} Server Error: {reason} for url: {self.url}" 266s ) 266s 266s if http_error_msg: 266s > raise HTTPError(http_error_msg, response=self) 266s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f73d6ac6-6ec2-4b30-a8d8-c83a9587a682 266s 266s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 266s ------------------------------ Captured log setup ------------------------------ 266s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpc57_c4e0/config', '/tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpc57_c4e0/etc/jupyter'] for config files 266s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc57_c4e0/etc/jupyter 266s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 266s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 266s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpc57_c4e0/config 266s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc57_c4e0/etc/jupyter 266s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 266s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.g7xfi7/autopkgtest_tmp/home/.local/etc/jupyter 266s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpc57_c4e0/config 266s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpc57_c4e0/notebooks 266s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 266s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 266s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 266s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 266s WARNING NotebookApp:handlers.py:612 Forbidden 266s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.350000ms referer=None 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.590000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc57_c4e0/runtime/kernel-b55dcf5f-45b2-40d1-8762-d6d1df6c1cad.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42069 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32839 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: b55dcf5f-45b2-40d1-8762-d6d1df6c1cad, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc57_c4e0/notebooks/foo'} 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.870000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.470000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/f73d6ac6-6ec2-4b30-a8d8-c83a9587a682 (::1) 1.250000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.430000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b55dcf5f-45b2-40d1-8762-d6d1df6c1cad 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b55dcf5f-45b2-40d1-8762-d6d1df6c1cad 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f73d6ac6-6ec2-4b30-a8d8-c83a9587a682 (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f73d6ac6-6ec2-4b30-a8d8-c83a9587a682', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 266s future.result() 266s ~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 266s raise self._exception.with_traceback(self._exception_tb) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 266s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 266s raise km.ready.exception() # type: ignore[misc] 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s _______________ AsyncSessionAPITest.test_create_console_session ________________ 266s 266s @self.addCleanup 266s def cleanup_sessions(): 266s for session in self.sess_api.list().json(): 266s > self.sess_api.delete(session['id']) 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 266s return self._req('DELETE', id) 266s ^^^^^^^^^^^^^^^^^^^^^^^ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 266s response.raise_for_status() 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s 266s self = 266s 266s def raise_for_status(self): 266s """Raises :class:`HTTPError`, if one occurred.""" 266s 266s http_error_msg = "" 266s if isinstance(self.reason, bytes): 266s # We attempt to decode utf-8 first because some servers 266s # choose to localize their reason strings. If the string 266s # isn't utf-8, we fall back to iso-8859-1 for all other 266s # encodings. (See PR #3538) 266s try: 266s reason = self.reason.decode("utf-8") 266s except UnicodeDecodeError: 266s reason = self.reason.decode("iso-8859-1") 266s else: 266s reason = self.reason 266s 266s if 400 <= self.status_code < 500: 266s http_error_msg = ( 266s f"{self.status_code} Client Error: {reason} for url: {self.url}" 266s ) 266s 266s elif 500 <= self.status_code < 600: 266s http_error_msg = ( 266s f"{self.status_code} Server Error: {reason} for url: {self.url}" 266s ) 266s 266s if http_error_msg: 266s > raise HTTPError(http_error_msg, response=self) 266s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/541caca3-8415-45ce-9eab-5ea90b16ff5c 266s 266s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 266s ----------------------------- Captured stderr call ----------------------------- 266s Fatal Python error: init_sys_streams: can't initialize sys standard streams 266s Python runtime state: core initialized 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc57_c4e0/runtime/kernel-7b775b27-0f26-473a-95c6-d0c99a0e4c52.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36105 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51097 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7b775b27-0f26-473a-95c6-d0c99a0e4c52, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc57_c4e0/notebooks/foo'} 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.110000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.600000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b55dcf5f-45b2-40d1-8762-d6d1df6c1cad 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b55dcf5f-45b2-40d1-8762-d6d1df6c1cad 266s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/f73d6ac6-6ec2-4b30-a8d8-c83a9587a682 (::1) 1.530000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b775b27-0f26-473a-95c6-d0c99a0e4c52 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b775b27-0f26-473a-95c6-d0c99a0e4c52 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/541caca3-8415-45ce-9eab-5ea90b16ff5c (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/541caca3-8415-45ce-9eab-5ea90b16ff5c', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 266s future.result() 266s ~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 266s raise self._exception.with_traceback(self._exception_tb) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 266s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 266s raise km.ready.exception() # type: ignore[misc] 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 266s gc.collect() 266s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 266s 266s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 266s 266s @self.addCleanup 266s def cleanup_sessions(): 266s for session in self.sess_api.list().json(): 266s > self.sess_api.delete(session['id']) 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 266s return self._req('DELETE', id) 266s ^^^^^^^^^^^^^^^^^^^^^^^ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 266s response.raise_for_status() 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s 266s self = 266s 266s def raise_for_status(self): 266s """Raises :class:`HTTPError`, if one occurred.""" 266s 266s http_error_msg = "" 266s if isinstance(self.reason, bytes): 266s # We attempt to decode utf-8 first because some servers 266s # choose to localize their reason strings. If the string 266s # isn't utf-8, we fall back to iso-8859-1 for all other 266s # encodings. (See PR #3538) 266s try: 266s reason = self.reason.decode("utf-8") 266s except UnicodeDecodeError: 266s reason = self.reason.decode("iso-8859-1") 266s else: 266s reason = self.reason 266s 266s if 400 <= self.status_code < 500: 266s http_error_msg = ( 266s f"{self.status_code} Client Error: {reason} for url: {self.url}" 266s ) 266s 266s elif 500 <= self.status_code < 600: 266s http_error_msg = ( 266s f"{self.status_code} Server Error: {reason} for url: {self.url}" 266s ) 266s 266s if http_error_msg: 266s > raise HTTPError(http_error_msg, response=self) 266s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b8dc7089-b499-4237-8df7-9410e7bfc76b 266s 266s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 266s ----------------------------- Captured stderr call ----------------------------- 266s Traceback (most recent call last): 266s File "/usr/lib/python3.13/io.py", line 53, in 266s File "", line 1354, in _find_and_load 266s KeyboardInterrupt 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc57_c4e0/runtime/kernel-ed8e789c-eddf-42ac-9ee0-51952993212e.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36013 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47625 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: ed8e789c-eddf-42ac-9ee0-51952993212e, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc57_c4e0/notebooks/foo'} 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.250000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.480000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7b775b27-0f26-473a-95c6-d0c99a0e4c52 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b775b27-0f26-473a-95c6-d0c99a0e4c52 266s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/541caca3-8415-45ce-9eab-5ea90b16ff5c (::1) 1.550000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ed8e789c-eddf-42ac-9ee0-51952993212e 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed8e789c-eddf-42ac-9ee0-51952993212e 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b8dc7089-b499-4237-8df7-9410e7bfc76b (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b8dc7089-b499-4237-8df7-9410e7bfc76b', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 266s future.result() 266s ~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 266s raise self._exception.with_traceback(self._exception_tb) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 266s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 266s raise km.ready.exception() # type: ignore[misc] 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s --------------------------- Captured stderr teardown --------------------------- 266s Traceback (most recent call last): 266s File "/usr/lib/python3.13/runpy.py", line 189, in _run_module_as_main 266s mod_name, mod_spec, code = _get_module_details(mod_name, _Error) 266s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3.13/runpy.py", line 131, in _get_module_details 266s spec = importlib.util.find_spec(mod_name) 266s File "/usr/lib/python3.13/importlib/util.py", line 100, in find_spec 266s return _find_spec(fullname, parent_path) 266s File "", line 1262, in _find_spec 266s File "", line 1556, in find_spec 266s File "", line 1530, in _get_spec 266s File "", line 1662, in find_spec 266s File "", line 166, in _path_isfile 266s File "", line 158, in _path_is_mode_type 266s File "", line 152, in _path_stat 266s KeyboardInterrupt 266s _________________ AsyncSessionAPITest.test_create_file_session _________________ 266s 266s @self.addCleanup 266s def cleanup_sessions(): 266s for session in self.sess_api.list().json(): 266s > self.sess_api.delete(session['id']) 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 266s return self._req('DELETE', id) 266s ^^^^^^^^^^^^^^^^^^^^^^^ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 266s response.raise_for_status() 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s 266s self = 266s 266s def raise_for_status(self): 266s """Raises :class:`HTTPError`, if one occurred.""" 266s 266s http_error_msg = "" 266s if isinstance(self.reason, bytes): 266s # We attempt to decode utf-8 first because some servers 266s # choose to localize their reason strings. If the string 266s # isn't utf-8, we fall back to iso-8859-1 for all other 266s # encodings. (See PR #3538) 266s try: 266s reason = self.reason.decode("utf-8") 266s except UnicodeDecodeError: 266s reason = self.reason.decode("iso-8859-1") 266s else: 266s reason = self.reason 266s 266s if 400 <= self.status_code < 500: 266s http_error_msg = ( 266s f"{self.status_code} Client Error: {reason} for url: {self.url}" 266s ) 266s 266s elif 500 <= self.status_code < 600: 266s http_error_msg = ( 266s f"{self.status_code} Server Error: {reason} for url: {self.url}" 266s ) 266s 266s if http_error_msg: 266s > raise HTTPError(http_error_msg, response=self) 266s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e80c102c-1d83-4237-b544-822500939363 266s 266s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 266s ----------------------------- Captured stderr call ----------------------------- 266s Traceback (most recent call last): 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc57_c4e0/runtime/kernel-42c54a56-395a-4670-948d-56137225003a.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59321 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39971 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: 42c54a56-395a-4670-948d-56137225003a, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpc57_c4e0/notebooks/foo'} 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.410000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.660000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ed8e789c-eddf-42ac-9ee0-51952993212e 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed8e789c-eddf-42ac-9ee0-51952993212e 266s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b8dc7089-b499-4237-8df7-9410e7bfc76b (::1) 2.040000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 42c54a56-395a-4670-948d-56137225003a 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42c54a56-395a-4670-948d-56137225003a 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e80c102c-1d83-4237-b544-822500939363 (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e80c102c-1d83-4237-b544-822500939363', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 266s future.result() 266s ~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 266s raise self._exception.with_traceback(self._exception_tb) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 266s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 266s raise km.ready.exception() # type: ignore[misc] 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s ERROR NotebookApp:log.py:55 { 266s "Host": "localhost:12341", 266s "Accept": "*/*", 266s "User-Agent": "python-requests/2.32.5" 266s } 266s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e80c102c-1d83-4237-b544-822500939363 (::1) 6.220000ms referer=None 266s --------------------------- Captured stderr teardown --------------------------- 266s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 266s return _run_code(code, main_globals, None, 266s "__main__", mod_spec) 266s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 266s exec(code, run_globals) 266s ~~~~^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 266s from pathlib import Path 266s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 266s from ._local import * 266s File "", line 1360, in _find_and_load 266s File "", line 1331, in _find_and_load_unlocked 266s File "", line 935, in _load_unlocked 266s File "", line 1019, in exec_module 266s File "", line 1152, in get_code 266s File "", line 781, in _compile_bytecode 266s KeyboardInterrupt 266s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 266s 266s self = 266s 266s def test_create_with_kernel_id(self): 266s # create a new kernel 266s r = self.request('POST', 'api/kernels') 266s r.raise_for_status() 266s kernel = r.json() 266s 266s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 266s self.assertEqual(resp.status_code, 201) 266s newsession = resp.json() 266s self.assertIn('id', newsession) 266s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 266s self.assertEqual(newsession['kernel']['id'], kernel['id']) 266s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 266s 266s sessions = self.sess_api.list().json() 266s > self.assertEqual(sessions, [newsession]) 266s E AssertionError: Lists differ: [{'id': 'e80c102c-1d83-4237-b544-822500939363', 'p[553 chars]ne}}] != [{'id': '344ed610-aa35-41ee-a12d-4a39a967fced', 'p[279 chars]ne}}] 266s E 266s E First differing element 0: 266s E {'id': 'e80c102c-1d83-4237-b544-822500939363', 'p[218 chars]: 0}} 266s E {'id': '344ed610-aa35-41ee-a12d-4a39a967fced', 'p[278 chars]one}} 266s E 266s E First list contains 1 additional elements. 266s E First extra element 1: 266s E {'id': '344ed610-aa35-41ee-a12d-4a39a967fced', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '7ec5218a-e26e-44bc-bc40-5965109d94dd', 'name': 'python3', 'last_activity': '2026-02-02T09:05:05.668647Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 266s E 266s E Diff is 830 characters long. Set self.maxDiff to None to see it. 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 266s ----------------------------- Captured stderr call ----------------------------- 266s Traceback (most recent call last): 266s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 266s return _run_code(code, main_globals, None, 266s "__main__", mod_spec) 266s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 266s exec(code, run_globals) 266s ~~~~^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 266s from ipykernel import kernelapp as app 266s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 266s from .connect import * # noqa: F403 266s ^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 266s import jupyter_client 266s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 9, in 266s from .manager import AsyncKernelManager, KernelManager, run_kernel 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 36, in 266s from . import kernelspec 266s File "/usr/lib/python3/dist-packages/jupyter_client/kernelspec.py", line 18, in 266s from .provisioning import KernelProvisionerFactory as KPF # noqa 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/provisioning/__init__.py", line 2, in 266s from .local_provisioner import LocalProvisioner # noqa 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/provisioning/local_provisioner.py", line 14, in 266s from .provisioner_base import KernelProvisionerBase 266s File "", line 645, in parent 266s KeyboardInterrupt 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc57_c4e0/runtime/kernel-7ec5218a-e26e-44bc-bc40-5965109d94dd.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48179 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50497 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7ec5218a-e26e-44bc-bc40-5965109d94dd, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.240000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 12.100000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 184.910000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.440000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 42c54a56-395a-4670-948d-56137225003a 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42c54a56-395a-4670-948d-56137225003a 266s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e80c102c-1d83-4237-b544-822500939363 (::1) 1.380000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ec5218a-e26e-44bc-bc40-5965109d94dd 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec5218a-e26e-44bc-bc40-5965109d94dd 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 266s future.result() 266s ~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 266s raise self._exception.with_traceback(self._exception_tb) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 266s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 266s raise km.ready.exception() # type: ignore[misc] 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 266s 266s @self.addCleanup 266s def cleanup_sessions(): 266s for session in self.sess_api.list().json(): 266s > self.sess_api.delete(session['id']) 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 266s return self._req('DELETE', id) 266s ^^^^^^^^^^^^^^^^^^^^^^^ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 266s response.raise_for_status() 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s 266s self = 266s 266s def raise_for_status(self): 266s """Raises :class:`HTTPError`, if one occurred.""" 266s 266s http_error_msg = "" 266s if isinstance(self.reason, bytes): 266s # We attempt to decode utf-8 first because some servers 266s # choose to localize their reason strings. If the string 266s # isn't utf-8, we fall back to iso-8859-1 for all other 266s # encodings. (See PR #3538) 266s try: 266s reason = self.reason.decode("utf-8") 266s except UnicodeDecodeError: 266s reason = self.reason.decode("iso-8859-1") 266s else: 266s reason = self.reason 266s 266s if 400 <= self.status_code < 500: 266s http_error_msg = ( 266s f"{self.status_code} Client Error: {reason} for url: {self.url}" 266s ) 266s 266s elif 500 <= self.status_code < 600: 266s http_error_msg = ( 266s f"{self.status_code} Server Error: {reason} for url: {self.url}" 266s ) 266s 266s if http_error_msg: 266s > raise HTTPError(http_error_msg, response=self) 266s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced 266s 266s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 266s ----------------------------- Captured stderr call ----------------------------- 266s Traceback (most recent call last): 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.860000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc57_c4e0/runtime/kernel-1e8a5bca-ee45-4526-880b-0c383e854ef4.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56629 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60793 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1e8a5bca-ee45-4526-880b-0c383e854ef4, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.320000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7ec5218a-e26e-44bc-bc40-5965109d94dd 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec5218a-e26e-44bc-bc40-5965109d94dd 266s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced (::1) 1.390000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.540000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1e8a5bca-ee45-4526-880b-0c383e854ef4 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1e8a5bca-ee45-4526-880b-0c383e854ef4 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 266s future.result() 266s ~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 266s raise self._exception.with_traceback(self._exception_tb) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 266s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 266s raise km.ready.exception() # type: ignore[misc] 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s ERROR NotebookApp:log.py:55 { 266s "Host": "localhost:12341", 266s "Accept": "*/*", 266s "User-Agent": "python-requests/2.32.5" 266s } 266s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced (::1) 6.410000ms referer=None 266s --------------------------- Captured stderr teardown --------------------------- 266s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 266s return _run_code(code, main_globals, None, 266s "__main__", mod_spec) 266s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 266s exec(code, run_globals) 266s ~~~~^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 266s from pathlib import Path 266s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 266s from ._local import * 266s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 266s import warnings 266s File "", line 1360, in _find_and_load 266s File "", line 1331, in _find_and_load_unlocked 266s File "", line 935, in _load_unlocked 266s File "", line 1019, in exec_module 266s File "", line 1152, in get_code 266s File "", line 781, in _compile_bytecode 266s KeyboardInterrupt 266s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 266s 266s @self.addCleanup 266s def cleanup_sessions(): 266s for session in self.sess_api.list().json(): 266s > self.sess_api.delete(session['id']) 266s 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 266s return self._req('DELETE', id) 266s ^^^^^^^^^^^^^^^^^^^^^^^ 266s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 266s response.raise_for_status() 266s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 266s 266s self = 266s 266s def raise_for_status(self): 266s """Raises :class:`HTTPError`, if one occurred.""" 266s 266s http_error_msg = "" 266s if isinstance(self.reason, bytes): 266s # We attempt to decode utf-8 first because some servers 266s # choose to localize their reason strings. If the string 266s # isn't utf-8, we fall back to iso-8859-1 for all other 266s # encodings. (See PR #3538) 266s try: 266s reason = self.reason.decode("utf-8") 266s except UnicodeDecodeError: 266s reason = self.reason.decode("iso-8859-1") 266s else: 266s reason = self.reason 266s 266s if 400 <= self.status_code < 500: 266s http_error_msg = ( 266s f"{self.status_code} Client Error: {reason} for url: {self.url}" 266s ) 266s 266s elif 500 <= self.status_code < 600: 266s http_error_msg = ( 266s f"{self.status_code} Server Error: {reason} for url: {self.url}" 266s ) 266s 266s if http_error_msg: 266s > raise HTTPError(http_error_msg, response=self) 266s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced 266s 266s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 266s ----------------------------- Captured stderr call ----------------------------- 266s Fatal Python error: init_import_site: Failed to import the site module 266s Python runtime state: initialized 266s ------------------------------ Captured log call ------------------------------- 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.190000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 266s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpc57_c4e0/runtime/kernel-c33388f6-54e2-40d7-9235-498aa7f802db.json'] 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33515 266s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36913 266s INFO NotebookApp:kernelmanager.py:179 Kernel started: c33388f6-54e2-40d7-9235-498aa7f802db, name: python3 266s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpc57_c4e0/notebooks/foo'} 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1e8a5bca-ee45-4526-880b-0c383e854ef4 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1e8a5bca-ee45-4526-880b-0c383e854ef4 266s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced (::1) 39.030000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.020000ms 266s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 266s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c33388f6-54e2-40d7-9235-498aa7f802db 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c33388f6-54e2-40d7-9235-498aa7f802db 266s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced (::1) 266s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/344ed610-aa35-41ee-a12d-4a39a967fced', version='HTTP/1.1', remote_ip='::1') 266s Traceback (most recent call last): 266s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 266s result = await result 266s ^^^^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 266s future.result() 266s ~~~~~~~~~~~~~^^ 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 266s yield maybe_future(sm.delete_session(session_id)) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 266s yielded = self.gen.throw(exc) 266s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 266s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 266s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 266s value = future.result() 266s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 266s raise self._exception.with_traceback(self._exception_tb) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 266s result = coro.send(None) 266s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 266s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 266s raise km.ready.exception() # type: ignore[misc] 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 266s await kernel_awaitable 266s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 266s result = await obj 266s ^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 266s raise e 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 266s out = await method(self, *args, **kwargs) 266s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 266s await self._async_finish_shutdown(restart=restart) 266s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 266s await asyncio.wait_for( 266s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 266s ) 266s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 266s async with timeouts.timeout(timeout): 266s ~~~~~~~~~~~~~~~~^^^^^^^^^ 266s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 266s raise RuntimeError("Timeout should be used inside a task") 266s RuntimeError: Timeout should be used inside a task 266s WARNING NotebookApp:handlers.py:612 Unhandled error 266s --------------------------- Captured stderr teardown --------------------------- 266s Traceback (most recent call last): 266s File "/usr/lib/python3.13/site.py", line 735, in 266s main() 266s ~~~~^^ 266s File "/usr/lib/python3.13/site.py", line 722, in main 266s known_paths = addsitepackages(known_paths) 266s File "/usr/lib/python3.13/site.py", line 441, in addsitepackages 266s addsitedir(sitedir, known_paths) 266s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3.13/site.py", line 254, in addsitedir 266s addpackage(sitedir, name, known_paths) 266s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 266s File "/usr/lib/python3.13/site.py", line 213, in addpackage 266s exec(line) 266s ~~~~^^^^^^ 266s File "", line 1, in 266s File "", line 1360, in _find_and_load 266s File "", line 1322, in _find_and_load_unlocked 266s File "", line 1262, in _find_spec 266s File "", line 1556, in find_spec 266s File "", line 1530, in _get_spec 266s File "", line 1633, in find_spec 266s File "", line 1676, in _fill_cache 266s KeyboardInterrupt 266s ---------------------------- Captured log teardown ----------------------------- 266s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42c54a56-395a-4670-948d-56137225003a 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7b775b27-0f26-473a-95c6-d0c99a0e4c52 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7ec5218a-e26e-44bc-bc40-5965109d94dd 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b55dcf5f-45b2-40d1-8762-d6d1df6c1cad 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1e8a5bca-ee45-4526-880b-0c383e854ef4 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c33388f6-54e2-40d7-9235-498aa7f802db 266s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ed8e789c-eddf-42ac-9ee0-51952993212e 266s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 266s =============================== warnings summary =============================== 266s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 266s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 266s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 266s return LooseVersion(v) >= LooseVersion(check) 266s 266s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 266s services/kernels/tests/test_kernels_api.py: 72 warnings 266s services/sessions/tests/test_sessions_api.py: 88 warnings 266s /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). 266s dt = unaware(*args, **kwargs) 266s 266s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 266s /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 266s pytestmark = pytest.mark.integration_tests 266s 266s services/kernels/tests/test_kernels_api.py: 6 warnings 266s services/sessions/tests/test_sessions_api.py: 6 warnings 266s /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 266s policy = events.get_event_loop_policy() 266s 266s services/kernels/tests/test_kernels_api.py: 24 warnings 266s services/sessions/tests/test_sessions_api.py: 19 warnings 266s /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 266s loop = events.get_event_loop_policy().get_event_loop() 266s 266s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 266s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 266s loop.make_current() 266s 266s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 266s /usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py:45: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 266s @default('kernel_manager_class') 266s Enable tracemalloc to get traceback where the object was allocated. 266s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 266s 266s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 266s =========================== short test summary info ============================ 266s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 266s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 266s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 266s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 266s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 266s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 266s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 266s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 266s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 266s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 266s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 266s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 266s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 266s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 266s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 266s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 266s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 266s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 266s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 266s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 266s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 266s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 266s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 266s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 266s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 266s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 266s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 266s ========= 23 failed, 307 deselected, 221 warnings, 4 errors in 11.00s ========== 266s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 266s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 266s autopkgtest [09:03:24]: test pytest: -----------------------] 267s pytest FAIL non-zero exit status 1 267s autopkgtest [09:03:25]: test pytest: - - - - - - - - - - results - - - - - - - - - - 267s autopkgtest [09:03:25]: @@@@@@@@@@@@@@@@@@@@ summary 267s pytest FAIL non-zero exit status 1