0s autopkgtest [05:43:00]: starting date and time: 2026-01-30 05:43:00+0000 0s autopkgtest [05:43:00]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [05:43:00]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.cncyzwl_/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:send2trash --apt-upgrade jupyter-notebook --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=send2trash/1.8.3-1build1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-arm64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-arm64-17.secgroup --name adt-resolute-arm64-jupyter-notebook-20260130-054300-juju-7f2275-prod-proposed-migration-environment-2-12ca989b-69bb-44e9-9121-e6da238e296c --image adt/ubuntu-resolute-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-arm64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-arm64-jupyter-notebook-20260130-054300-juju-7f2275-prod-proposed-migration-environment-2-12ca989b-69bb-44e9-9121-e6da238e296c from image adt/ubuntu-resolute-arm64-server-20260130.img (UUID d80a3628-95a8-4c17-a25a-26b02882b363)... 60s autopkgtest [05:44:00]: testbed dpkg architecture: arm64 60s autopkgtest [05:44:00]: testbed apt version: 3.1.14 60s autopkgtest [05:44:00]: @@@@@@@@@@@@@@@@@@@@ test bed setup 60s autopkgtest [05:44:00]: testbed release detected to be: None 61s autopkgtest [05:44:01]: updating testbed package index (apt update) 62s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 62s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 62s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 62s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 62s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [33.0 kB] 62s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1600 kB] 62s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [103 kB] 62s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 62s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [120 kB] 62s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [4364 B] 62s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 Packages [12.3 kB] 62s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [328 B] 62s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [1166 kB] 62s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [21.9 kB] 62s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [25.4 kB] 62s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [720 B] 65s Fetched 3215 kB in 1s (2762 kB/s) 66s Reading package lists... 68s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 68s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 68s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 68s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 69s Reading package lists... 69s Reading package lists... 69s Building dependency tree... 69s Reading state information... 69s Calculating upgrade... 70s The following packages will be upgraded: 70s bzip2 inetutils-telnet libbz2-1.0 libsqlite3-0 telnet 70s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 70s Need to get 888 kB of archives. 70s After this operation, 2048 B of additional disk space will be used. 70s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 bzip2 arm64 1.0.8-6build2 [34.0 kB] 70s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libbz2-1.0 arm64 1.0.8-6build2 [34.9 kB] 70s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 libsqlite3-0 arm64 3.46.1-9 [711 kB] 70s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 inetutils-telnet arm64 2:2.7-2ubuntu1 [104 kB] 70s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 telnet all 0.17+2.7-2ubuntu1 [3636 B] 71s dpkg-preconfigure: unable to re-open stdin: No such file or directory 71s Fetched 888 kB in 0s (1798 kB/s) 71s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 135255 files and directories currently installed.) 71s Preparing to unpack .../bzip2_1.0.8-6build2_arm64.deb ... 71s Unpacking bzip2 (1.0.8-6build2) over (1.0.8-6build1) ... 71s Preparing to unpack .../libbz2-1.0_1.0.8-6build2_arm64.deb ... 71s Unpacking libbz2-1.0:arm64 (1.0.8-6build2) over (1.0.8-6build1) ... 71s Setting up libbz2-1.0:arm64 (1.0.8-6build2) ... 71s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 135255 files and directories currently installed.) 71s Preparing to unpack .../libsqlite3-0_3.46.1-9_arm64.deb ... 71s Unpacking libsqlite3-0:arm64 (3.46.1-9) over (3.46.1-8) ... 71s Preparing to unpack .../inetutils-telnet_2%3a2.7-2ubuntu1_arm64.deb ... 71s Unpacking inetutils-telnet (2:2.7-2ubuntu1) over (2:2.6-4ubuntu1) ... 71s Preparing to unpack .../telnet_0.17+2.7-2ubuntu1_all.deb ... 71s Unpacking telnet (0.17+2.7-2ubuntu1) over (0.17+2.6-4ubuntu1) ... 72s Setting up libsqlite3-0:arm64 (3.46.1-9) ... 72s Setting up inetutils-telnet (2:2.7-2ubuntu1) ... 72s Setting up bzip2 (1.0.8-6build2) ... 72s Setting up telnet (0.17+2.7-2ubuntu1) ... 72s Processing triggers for man-db (2.13.1-1) ... 72s Processing triggers for libc-bin (2.42-2ubuntu4) ... 72s autopkgtest [05:44:12]: upgrading testbed (apt dist-upgrade and autopurge) 73s Reading package lists... 73s Building dependency tree... 73s Reading state information... 73s Calculating upgrade... 73s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 74s Reading package lists... 74s Building dependency tree... 74s Reading state information... 74s Solving dependencies... 74s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 77s autopkgtest [05:44:17]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:41:39 UTC 2026 77s autopkgtest [05:44:17]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 80s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 80s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 80s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 80s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 80s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 80s gpgv: Can't check signature: No public key 80s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 80s autopkgtest [05:44:20]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 80s autopkgtest [05:44:20]: build not needed 81s autopkgtest [05:44:21]: test pytest: preparing testbed 81s Reading package lists... 82s Building dependency tree... 82s Reading state information... 82s Solving dependencies... 82s The following NEW packages will be installed: 82s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 82s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libjs-backbone 82s libjs-bootstrap libjs-bootstrap-tour libjs-codemirror libjs-es6-promise 82s libjs-jed libjs-jquery libjs-jquery-typeahead libjs-jquery-ui libjs-marked 82s libjs-mathjax libjs-moment libjs-requirejs libjs-requirejs-text 82s libjs-text-encoding libjs-underscore libjs-xterm libnorm1t64 libpgm-5.3-0t64 82s libpython3.14 libpython3.14-minimal libpython3.14-stdlib libsodium23 82s libsource-highlight-common libsource-highlight4t64 libzmq5 node-jed 82s python-notebook-doc python-tinycss2-common python3-all python3-argon2 82s python3-argon2-cffi-bindings python3-astroid python3-asttokens 82s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 82s python3-debugpy python3-decorator python3-defusedxml python3-executing 82s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 82s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 82s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 82s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 82s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 82s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 82s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 82s python3-pytest python3-requests-unixsocket python3-send2trash 82s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 82s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 82s python3-webencodings python3-zmq python3.14 python3.14-minimal 82s sphinx-rtd-theme-common 83s 0 upgraded, 95 newly installed, 0 to remove and 0 not upgraded. 83s Need to get 41.8 MB of archives. 83s After this operation, 204 MB of additional disk space will be used. 83s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 fonts-lato all 2.015-1build1 [2779 kB] 83s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-minimal arm64 3.14.2-1 [917 kB] 83s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14-minimal arm64 3.14.2-1 [2548 kB] 83s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 83s Get:5 http://ftpmaster.internal/ubuntu resolute/universe arm64 fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 83s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 83s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 libbabeltrace1 arm64 1.5.11-5 [157 kB] 83s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14-stdlib arm64 3.14.2-1 [2351 kB] 83s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 libpython3.14 arm64 3.14.2-1 [2593 kB] 83s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 83s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 libsource-highlight4t64 arm64 3.1.9-4.3build2 [253 kB] 83s Get:12 http://ftpmaster.internal/ubuntu resolute/main arm64 gdb arm64 17.1-1ubuntu2 [4846 kB] 84s Get:13 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-platformdirs all 4.5.1-1 [17.1 kB] 84s Get:14 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 84s Get:15 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jupyter-core all 5.9.1-1 [28.9 kB] 84s Get:16 http://ftpmaster.internal/ubuntu resolute/universe arm64 jupyter-core all 5.9.1-1 [6938 B] 84s Get:17 http://ftpmaster.internal/ubuntu resolute/main arm64 libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 84s Get:18 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 84s Get:19 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 84s Get:20 http://ftpmaster.internal/ubuntu resolute/main arm64 libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 84s Get:21 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 84s Get:22 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 84s Get:23 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-es6-promise all 4.2.8-12 [14.1 kB] 84s Get:24 http://ftpmaster.internal/ubuntu resolute/universe arm64 node-jed all 1.1.1-4 [15.2 kB] 84s Get:25 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-jed all 1.1.1-4 [2584 B] 84s Get:26 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 84s Get:27 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 84s Get:28 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 84s Get:29 http://ftpmaster.internal/ubuntu resolute/main arm64 libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 84s Get:30 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-moment all 2.29.4+ds-1 [147 kB] 84s Get:31 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 84s Get:32 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-requirejs-text all 2.0.12-2 [9732 B] 84s Get:33 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-text-encoding all 0.7.0-5 [140 kB] 84s Get:34 http://ftpmaster.internal/ubuntu resolute/universe arm64 libjs-xterm all 5.3.0-4 [475 kB] 84s Get:35 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-tornado arm64 6.5.4-0.1 [306 kB] 84s Get:36 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-terminado all 0.18.1-1 [13.2 kB] 84s Get:37 http://ftpmaster.internal/ubuntu resolute/main arm64 libargon2-1 arm64 0~20190702+dfsg-5 [21.0 kB] 84s Get:38 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-ply all 3.11-10 [45.9 kB] 84s Get:39 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-pycparser all 2.23-2 [77.0 kB] 84s Get:40 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-cffi all 2.0.0-2 [75.5 kB] 84s Get:41 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-argon2-cffi-bindings arm64 25.1.0-2 [15.2 kB] 84s Get:42 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-argon2 arm64 25.1.0-2 [13.8 kB] 84s Get:43 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-comm all 0.2.1-1build1 [7148 B] 84s Get:44 http://ftpmaster.internal/ubuntu resolute/main arm64 python3.14 arm64 3.14.2-1 [816 kB] 84s Get:45 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-coverage arm64 7.8.2+dfsg1-1ubuntu1 [159 kB] 84s Get:46 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-debugpy arm64 1.8.19+ds-1ubuntu1 [878 kB] 84s Get:47 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-decorator all 5.2.1-2 [28.1 kB] 84s Get:48 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-parso all 0.8.5-1 [68.0 kB] 84s Get:49 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 84s Get:50 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jedi all 0.19.1+ds1-1build1 [694 kB] 84s Get:51 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-matplotlib-inline all 0.2.1-1 [9462 B] 84s Get:52 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 84s Get:53 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-prompt-toolkit all 3.0.52-2 [258 kB] 84s Get:54 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-astroid all 4.0.2-1ubuntu1 [172 kB] 84s Get:55 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-asttokens all 3.0.1-1 [20.7 kB] 84s Get:56 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-executing all 2.2.1-0.1 [26.2 kB] 84s Get:57 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pure-eval all 0.2.3-1 [11.4 kB] 84s Get:58 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-stack-data all 0.6.3-3 [22.2 kB] 84s Get:59 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-ipython all 8.35.0-2 [575 kB] 84s Get:60 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-psutil arm64 7.1.0-1ubuntu1 [191 kB] 84s Get:61 http://ftpmaster.internal/ubuntu resolute/universe arm64 libnorm1t64 arm64 1.5.9+dfsg-4 [152 kB] 84s Get:62 http://ftpmaster.internal/ubuntu resolute/universe arm64 libpgm-5.3-0t64 arm64 5.3.128~dfsg-2.1build2 [161 kB] 84s Get:63 http://ftpmaster.internal/ubuntu resolute/main arm64 libsodium23 arm64 1.0.18-2 [120 kB] 84s Get:64 http://ftpmaster.internal/ubuntu resolute/universe arm64 libzmq5 arm64 4.3.5-1build3 [244 kB] 85s Get:65 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-zmq arm64 27.1.0-1 [231 kB] 85s Get:66 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jupyter-client all 8.7.0-1 [78.5 kB] 85s Get:67 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nest-asyncio all 1.6.0-1 [6686 B] 85s Get:68 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-ipykernel all 6.30.1-1 [82.8 kB] 85s Get:69 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-ipython-genutils all 0.2.0-7 [22.0 kB] 85s Get:70 http://ftpmaster.internal/ubuntu resolute/universe arm64 python-tinycss2-common all 1.5.1-1 [47.3 kB] 85s Get:71 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-webencodings all 0.5.1-5build1 [11.7 kB] 85s Get:72 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-tinycss2 all 1.5.1-1 [23.3 kB] 85s Get:73 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-html5lib all 1.2-3 [90.6 kB] 85s Get:74 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-bleach all 6.3.0-1 [44.2 kB] 85s Get:75 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-soupsieve all 2.8.3-1 [34.0 kB] 85s Get:76 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-bs4 all 4.14.3-2build1 [84.8 kB] 85s Get:77 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-defusedxml all 0.7.1-3build1 [42.4 kB] 85s Get:78 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 85s Get:79 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-mistune all 3.1.4-1 [35.0 kB] 85s Get:80 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-fastjsonschema all 2.21.1-1 [20.4 kB] 85s Get:81 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nbformat all 5.10.4-1 [39.2 kB] 85s Get:82 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nbclient all 0.10.4-1 [22.6 kB] 85s Get:83 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pandocfilters all 1.5.1-1 [23.6 kB] 85s Get:84 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-nbconvert all 7.16.6-1 [140 kB] 85s Get:85 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 85s Get:86 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 python3-send2trash all 1.8.3-1build1 [14.8 kB] 85s Get:87 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 85s Get:88 http://ftpmaster.internal/ubuntu resolute/universe arm64 jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 85s Get:89 http://ftpmaster.internal/ubuntu resolute/main arm64 sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 85s Get:90 http://ftpmaster.internal/ubuntu resolute/universe arm64 python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 85s Get:91 http://ftpmaster.internal/ubuntu resolute/main arm64 python3-all arm64 3.13.9-3 [890 B] 85s Get:92 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-iniconfig all 2.1.0-2 [6962 B] 85s Get:93 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pluggy all 1.6.0-2 [21.1 kB] 85s Get:94 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-pytest all 9.0.2-2 [277 kB] 85s Get:95 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-requests-unixsocket all 1.0.1-1 [8620 B] 85s Fetched 41.8 MB in 3s (15.5 MB/s) 85s Selecting previously unselected package fonts-lato. 85s (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 ... 135255 files and directories currently installed.) 85s Preparing to unpack .../00-fonts-lato_2.015-1build1_all.deb ... 85s Unpacking fonts-lato (2.015-1build1) ... 86s Selecting previously unselected package libpython3.14-minimal:arm64. 86s Preparing to unpack .../01-libpython3.14-minimal_3.14.2-1_arm64.deb ... 86s Unpacking libpython3.14-minimal:arm64 (3.14.2-1) ... 86s Selecting previously unselected package python3.14-minimal. 86s Preparing to unpack .../02-python3.14-minimal_3.14.2-1_arm64.deb ... 86s Unpacking python3.14-minimal (3.14.2-1) ... 86s Selecting previously unselected package fonts-font-awesome. 86s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 86s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 86s Selecting previously unselected package fonts-glyphicons-halflings. 86s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 86s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 86s Selecting previously unselected package fonts-mathjax. 86s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 86s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 86s Selecting previously unselected package libbabeltrace1:arm64. 86s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_arm64.deb ... 86s Unpacking libbabeltrace1:arm64 (1.5.11-5) ... 86s Selecting previously unselected package libpython3.14-stdlib:arm64. 86s Preparing to unpack .../07-libpython3.14-stdlib_3.14.2-1_arm64.deb ... 86s Unpacking libpython3.14-stdlib:arm64 (3.14.2-1) ... 86s Selecting previously unselected package libpython3.14:arm64. 86s Preparing to unpack .../08-libpython3.14_3.14.2-1_arm64.deb ... 86s Unpacking libpython3.14:arm64 (3.14.2-1) ... 86s Selecting previously unselected package libsource-highlight-common. 86s Preparing to unpack .../09-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 86s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 86s Selecting previously unselected package libsource-highlight4t64:arm64. 86s Preparing to unpack .../10-libsource-highlight4t64_3.1.9-4.3build2_arm64.deb ... 86s Unpacking libsource-highlight4t64:arm64 (3.1.9-4.3build2) ... 86s Selecting previously unselected package gdb. 86s Preparing to unpack .../11-gdb_17.1-1ubuntu2_arm64.deb ... 86s Unpacking gdb (17.1-1ubuntu2) ... 87s Selecting previously unselected package python3-platformdirs. 87s Preparing to unpack .../12-python3-platformdirs_4.5.1-1_all.deb ... 87s Unpacking python3-platformdirs (4.5.1-1) ... 87s Selecting previously unselected package python3-traitlets. 87s Preparing to unpack .../13-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 87s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 87s Selecting previously unselected package python3-jupyter-core. 87s Preparing to unpack .../14-python3-jupyter-core_5.9.1-1_all.deb ... 87s Unpacking python3-jupyter-core (5.9.1-1) ... 87s Selecting previously unselected package jupyter-core. 87s Preparing to unpack .../15-jupyter-core_5.9.1-1_all.deb ... 87s Unpacking jupyter-core (5.9.1-1) ... 87s Selecting previously unselected package libjs-underscore. 87s Preparing to unpack .../16-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 87s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 87s Selecting previously unselected package libjs-backbone. 87s Preparing to unpack .../17-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 87s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 87s Selecting previously unselected package libjs-bootstrap. 87s Preparing to unpack .../18-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 87s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 87s Selecting previously unselected package libjs-jquery. 87s Preparing to unpack .../19-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 87s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 87s Selecting previously unselected package libjs-bootstrap-tour. 87s Preparing to unpack .../20-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 87s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 87s Selecting previously unselected package libjs-codemirror. 87s Preparing to unpack .../21-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 87s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 87s Selecting previously unselected package libjs-es6-promise. 87s Preparing to unpack .../22-libjs-es6-promise_4.2.8-12_all.deb ... 87s Unpacking libjs-es6-promise (4.2.8-12) ... 87s Selecting previously unselected package node-jed. 87s Preparing to unpack .../23-node-jed_1.1.1-4_all.deb ... 87s Unpacking node-jed (1.1.1-4) ... 87s Selecting previously unselected package libjs-jed. 87s Preparing to unpack .../24-libjs-jed_1.1.1-4_all.deb ... 87s Unpacking libjs-jed (1.1.1-4) ... 87s Selecting previously unselected package libjs-jquery-typeahead. 87s Preparing to unpack .../25-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 87s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 87s Selecting previously unselected package libjs-jquery-ui. 87s Preparing to unpack .../26-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 87s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 87s Selecting previously unselected package libjs-marked. 87s Preparing to unpack .../27-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 87s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 87s Selecting previously unselected package libjs-mathjax. 87s Preparing to unpack .../28-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 87s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 88s Selecting previously unselected package libjs-moment. 88s Preparing to unpack .../29-libjs-moment_2.29.4+ds-1_all.deb ... 88s Unpacking libjs-moment (2.29.4+ds-1) ... 88s Selecting previously unselected package libjs-requirejs. 88s Preparing to unpack .../30-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 88s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 88s Selecting previously unselected package libjs-requirejs-text. 88s Preparing to unpack .../31-libjs-requirejs-text_2.0.12-2_all.deb ... 88s Unpacking libjs-requirejs-text (2.0.12-2) ... 88s Selecting previously unselected package libjs-text-encoding. 88s Preparing to unpack .../32-libjs-text-encoding_0.7.0-5_all.deb ... 88s Unpacking libjs-text-encoding (0.7.0-5) ... 88s Selecting previously unselected package libjs-xterm. 88s Preparing to unpack .../33-libjs-xterm_5.3.0-4_all.deb ... 88s Unpacking libjs-xterm (5.3.0-4) ... 88s Selecting previously unselected package python3-tornado. 88s Preparing to unpack .../34-python3-tornado_6.5.4-0.1_arm64.deb ... 88s Unpacking python3-tornado (6.5.4-0.1) ... 88s Selecting previously unselected package python3-terminado. 88s Preparing to unpack .../35-python3-terminado_0.18.1-1_all.deb ... 88s Unpacking python3-terminado (0.18.1-1) ... 88s Selecting previously unselected package libargon2-1:arm64. 88s Preparing to unpack .../36-libargon2-1_0~20190702+dfsg-5_arm64.deb ... 88s Unpacking libargon2-1:arm64 (0~20190702+dfsg-5) ... 88s Selecting previously unselected package python3-ply. 88s Preparing to unpack .../37-python3-ply_3.11-10_all.deb ... 88s Unpacking python3-ply (3.11-10) ... 88s Selecting previously unselected package python3-pycparser. 88s Preparing to unpack .../38-python3-pycparser_2.23-2_all.deb ... 88s Unpacking python3-pycparser (2.23-2) ... 88s Selecting previously unselected package python3-cffi. 88s Preparing to unpack .../39-python3-cffi_2.0.0-2_all.deb ... 88s Unpacking python3-cffi (2.0.0-2) ... 88s Selecting previously unselected package python3-argon2-cffi-bindings. 88s Preparing to unpack .../40-python3-argon2-cffi-bindings_25.1.0-2_arm64.deb ... 88s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 88s Selecting previously unselected package python3-argon2. 88s Preparing to unpack .../41-python3-argon2_25.1.0-2_arm64.deb ... 88s Unpacking python3-argon2 (25.1.0-2) ... 88s Selecting previously unselected package python3-comm. 88s Preparing to unpack .../42-python3-comm_0.2.1-1build1_all.deb ... 88s Unpacking python3-comm (0.2.1-1build1) ... 88s Selecting previously unselected package python3.14. 88s Preparing to unpack .../43-python3.14_3.14.2-1_arm64.deb ... 88s Unpacking python3.14 (3.14.2-1) ... 88s Selecting previously unselected package python3-coverage. 88s Preparing to unpack .../44-python3-coverage_7.8.2+dfsg1-1ubuntu1_arm64.deb ... 88s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 88s Selecting previously unselected package python3-debugpy. 88s Preparing to unpack .../45-python3-debugpy_1.8.19+ds-1ubuntu1_arm64.deb ... 88s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 88s Selecting previously unselected package python3-decorator. 88s Preparing to unpack .../46-python3-decorator_5.2.1-2_all.deb ... 88s Unpacking python3-decorator (5.2.1-2) ... 89s Selecting previously unselected package python3-parso. 89s Preparing to unpack .../47-python3-parso_0.8.5-1_all.deb ... 89s Unpacking python3-parso (0.8.5-1) ... 89s Selecting previously unselected package python3-typeshed. 89s Preparing to unpack .../48-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 89s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 89s Selecting previously unselected package python3-jedi. 89s Preparing to unpack .../49-python3-jedi_0.19.1+ds1-1build1_all.deb ... 89s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 89s Selecting previously unselected package python3-matplotlib-inline. 89s Preparing to unpack .../50-python3-matplotlib-inline_0.2.1-1_all.deb ... 89s Unpacking python3-matplotlib-inline (0.2.1-1) ... 89s Selecting previously unselected package python3-wcwidth. 89s Preparing to unpack .../51-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 89s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 89s Selecting previously unselected package python3-prompt-toolkit. 89s Preparing to unpack .../52-python3-prompt-toolkit_3.0.52-2_all.deb ... 89s Unpacking python3-prompt-toolkit (3.0.52-2) ... 89s Selecting previously unselected package python3-astroid. 89s Preparing to unpack .../53-python3-astroid_4.0.2-1ubuntu1_all.deb ... 89s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 89s Selecting previously unselected package python3-asttokens. 89s Preparing to unpack .../54-python3-asttokens_3.0.1-1_all.deb ... 89s Unpacking python3-asttokens (3.0.1-1) ... 89s Selecting previously unselected package python3-executing. 89s Preparing to unpack .../55-python3-executing_2.2.1-0.1_all.deb ... 89s Unpacking python3-executing (2.2.1-0.1) ... 89s Selecting previously unselected package python3-pure-eval. 89s Preparing to unpack .../56-python3-pure-eval_0.2.3-1_all.deb ... 89s Unpacking python3-pure-eval (0.2.3-1) ... 89s Selecting previously unselected package python3-stack-data. 89s Preparing to unpack .../57-python3-stack-data_0.6.3-3_all.deb ... 89s Unpacking python3-stack-data (0.6.3-3) ... 90s Selecting previously unselected package python3-ipython. 90s Preparing to unpack .../58-python3-ipython_8.35.0-2_all.deb ... 90s Unpacking python3-ipython (8.35.0-2) ... 90s Selecting previously unselected package python3-psutil. 90s Preparing to unpack .../59-python3-psutil_7.1.0-1ubuntu1_arm64.deb ... 90s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 90s Selecting previously unselected package libnorm1t64:arm64. 90s Preparing to unpack .../60-libnorm1t64_1.5.9+dfsg-4_arm64.deb ... 90s Unpacking libnorm1t64:arm64 (1.5.9+dfsg-4) ... 90s Selecting previously unselected package libpgm-5.3-0t64:arm64. 90s Preparing to unpack .../61-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_arm64.deb ... 90s Unpacking libpgm-5.3-0t64:arm64 (5.3.128~dfsg-2.1build2) ... 90s Selecting previously unselected package libsodium23:arm64. 90s Preparing to unpack .../62-libsodium23_1.0.18-2_arm64.deb ... 90s Unpacking libsodium23:arm64 (1.0.18-2) ... 90s Selecting previously unselected package libzmq5:arm64. 90s Preparing to unpack .../63-libzmq5_4.3.5-1build3_arm64.deb ... 90s Unpacking libzmq5:arm64 (4.3.5-1build3) ... 90s Selecting previously unselected package python3-zmq. 90s Preparing to unpack .../64-python3-zmq_27.1.0-1_arm64.deb ... 90s Unpacking python3-zmq (27.1.0-1) ... 90s Selecting previously unselected package python3-jupyter-client. 90s Preparing to unpack .../65-python3-jupyter-client_8.7.0-1_all.deb ... 90s Unpacking python3-jupyter-client (8.7.0-1) ... 90s Selecting previously unselected package python3-nest-asyncio. 90s Preparing to unpack .../66-python3-nest-asyncio_1.6.0-1_all.deb ... 90s Unpacking python3-nest-asyncio (1.6.0-1) ... 90s Selecting previously unselected package python3-ipykernel. 90s Preparing to unpack .../67-python3-ipykernel_6.30.1-1_all.deb ... 90s Unpacking python3-ipykernel (6.30.1-1) ... 90s Selecting previously unselected package python3-ipython-genutils. 90s Preparing to unpack .../68-python3-ipython-genutils_0.2.0-7_all.deb ... 90s Unpacking python3-ipython-genutils (0.2.0-7) ... 90s Selecting previously unselected package python-tinycss2-common. 90s Preparing to unpack .../69-python-tinycss2-common_1.5.1-1_all.deb ... 90s Unpacking python-tinycss2-common (1.5.1-1) ... 90s Selecting previously unselected package python3-webencodings. 90s Preparing to unpack .../70-python3-webencodings_0.5.1-5build1_all.deb ... 90s Unpacking python3-webencodings (0.5.1-5build1) ... 90s Selecting previously unselected package python3-tinycss2. 90s Preparing to unpack .../71-python3-tinycss2_1.5.1-1_all.deb ... 90s Unpacking python3-tinycss2 (1.5.1-1) ... 90s Selecting previously unselected package python3-html5lib. 90s Preparing to unpack .../72-python3-html5lib_1.2-3_all.deb ... 90s Unpacking python3-html5lib (1.2-3) ... 90s Selecting previously unselected package python3-bleach. 90s Preparing to unpack .../73-python3-bleach_6.3.0-1_all.deb ... 90s Unpacking python3-bleach (6.3.0-1) ... 90s Selecting previously unselected package python3-soupsieve. 90s Preparing to unpack .../74-python3-soupsieve_2.8.3-1_all.deb ... 90s Unpacking python3-soupsieve (2.8.3-1) ... 90s Selecting previously unselected package python3-bs4. 90s Preparing to unpack .../75-python3-bs4_4.14.3-2build1_all.deb ... 90s Unpacking python3-bs4 (4.14.3-2build1) ... 90s Selecting previously unselected package python3-defusedxml. 90s Preparing to unpack .../76-python3-defusedxml_0.7.1-3build1_all.deb ... 90s Unpacking python3-defusedxml (0.7.1-3build1) ... 90s Selecting previously unselected package python3-jupyterlab-pygments. 90s Preparing to unpack .../77-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 90s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 90s Selecting previously unselected package python3-mistune. 90s Preparing to unpack .../78-python3-mistune_3.1.4-1_all.deb ... 90s Unpacking python3-mistune (3.1.4-1) ... 91s Selecting previously unselected package python3-fastjsonschema. 91s Preparing to unpack .../79-python3-fastjsonschema_2.21.1-1_all.deb ... 91s Unpacking python3-fastjsonschema (2.21.1-1) ... 91s Selecting previously unselected package python3-nbformat. 91s Preparing to unpack .../80-python3-nbformat_5.10.4-1_all.deb ... 91s Unpacking python3-nbformat (5.10.4-1) ... 91s Selecting previously unselected package python3-nbclient. 91s Preparing to unpack .../81-python3-nbclient_0.10.4-1_all.deb ... 91s Unpacking python3-nbclient (0.10.4-1) ... 91s Selecting previously unselected package python3-pandocfilters. 91s Preparing to unpack .../82-python3-pandocfilters_1.5.1-1_all.deb ... 91s Unpacking python3-pandocfilters (1.5.1-1) ... 91s Selecting previously unselected package python3-nbconvert. 91s Preparing to unpack .../83-python3-nbconvert_7.16.6-1_all.deb ... 91s Unpacking python3-nbconvert (7.16.6-1) ... 91s Selecting previously unselected package python3-prometheus-client. 91s Preparing to unpack .../84-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 91s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 91s Selecting previously unselected package python3-send2trash. 91s Preparing to unpack .../85-python3-send2trash_1.8.3-1build1_all.deb ... 91s Unpacking python3-send2trash (1.8.3-1build1) ... 91s Selecting previously unselected package python3-notebook. 91s Preparing to unpack .../86-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 91s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 91s Selecting previously unselected package jupyter-notebook. 91s Preparing to unpack .../87-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 91s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 91s Selecting previously unselected package sphinx-rtd-theme-common. 91s Preparing to unpack .../88-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 91s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 91s Selecting previously unselected package python-notebook-doc. 91s Preparing to unpack .../89-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 91s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 91s Selecting previously unselected package python3-all. 91s Preparing to unpack .../90-python3-all_3.13.9-3_arm64.deb ... 91s Unpacking python3-all (3.13.9-3) ... 91s Selecting previously unselected package python3-iniconfig. 91s Preparing to unpack .../91-python3-iniconfig_2.1.0-2_all.deb ... 91s Unpacking python3-iniconfig (2.1.0-2) ... 91s Selecting previously unselected package python3-pluggy. 91s Preparing to unpack .../92-python3-pluggy_1.6.0-2_all.deb ... 91s Unpacking python3-pluggy (1.6.0-2) ... 91s Selecting previously unselected package python3-pytest. 91s Preparing to unpack .../93-python3-pytest_9.0.2-2_all.deb ... 91s Unpacking python3-pytest (9.0.2-2) ... 91s Selecting previously unselected package python3-requests-unixsocket. 91s Preparing to unpack .../94-python3-requests-unixsocket_1.0.1-1_all.deb ... 91s Unpacking python3-requests-unixsocket (1.0.1-1) ... 91s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 91s Setting up python3-iniconfig (2.1.0-2) ... 92s Setting up python3-tornado (6.5.4-0.1) ... 93s Setting up libnorm1t64:arm64 (1.5.9+dfsg-4) ... 93s Setting up python3-pure-eval (0.2.3-1) ... 93s Setting up python3-send2trash (1.8.3-1build1) ... 93s Setting up fonts-lato (2.015-1build1) ... 93s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 93s Setting up libsodium23:arm64 (1.0.18-2) ... 93s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 93s Setting up libjs-requirejs-text (2.0.12-2) ... 93s Setting up python3-parso (0.8.5-1) ... 93s Setting up python3-defusedxml (0.7.1-3build1) ... 93s Setting up python3-ipython-genutils (0.2.0-7) ... 94s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 94s Setting up libargon2-1:arm64 (0~20190702+dfsg-5) ... 94s Setting up python3-ply (3.11-10) ... 94s Setting up libpython3.14-minimal:arm64 (3.14.2-1) ... 94s Setting up libjs-moment (2.29.4+ds-1) ... 94s Setting up python3-pandocfilters (1.5.1-1) ... 94s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 94s Setting up libjs-es6-promise (4.2.8-12) ... 94s Setting up libjs-text-encoding (0.7.0-5) ... 94s Setting up python3-webencodings (0.5.1-5build1) ... 94s Setting up python3-platformdirs (4.5.1-1) ... 94s Setting up python3-psutil (7.1.0-1ubuntu1) ... 95s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 95s Setting up python3-pycparser (2.23-2) ... 95s Setting up python3-requests-unixsocket (1.0.1-1) ... 96s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 96s Setting up libpgm-5.3-0t64:arm64 (5.3.128~dfsg-2.1build2) ... 96s Setting up python3-decorator (5.2.1-2) ... 96s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 96s Setting up node-jed (1.1.1-4) ... 96s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 96s Setting up libjs-xterm (5.3.0-4) ... 96s Setting up python3-nest-asyncio (1.6.0-1) ... 96s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 96s Setting up libjs-jed (1.1.1-4) ... 96s Setting up python3-html5lib (1.2-3) ... 97s Setting up libbabeltrace1:arm64 (1.5.11-5) ... 97s Setting up python3-pluggy (1.6.0-2) ... 97s Setting up python3-fastjsonschema (2.21.1-1) ... 97s Setting up python3-terminado (0.18.1-1) ... 97s Setting up python3-astroid (4.0.2-1ubuntu1) ... 98s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 98s Setting up python-tinycss2-common (1.5.1-1) ... 98s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 98s Setting up python3-mistune (3.1.4-1) ... 99s Setting up python3-soupsieve (2.8.3-1) ... 99s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 99s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 99s Setting up python3.14-minimal (3.14.2-1) ... 100s Setting up python3-jupyter-core (5.9.1-1) ... 100s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 100s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 100s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 100s Setting up python3-prompt-toolkit (3.0.52-2) ... 101s Setting up python3-tinycss2 (1.5.1-1) ... 101s Setting up libzmq5:arm64 (4.3.5-1build3) ... 101s Setting up python3-jedi (0.19.1+ds1-1build1) ... 101s Setting up libpython3.14-stdlib:arm64 (3.14.2-1) ... 101s Setting up python3-asttokens (3.0.1-1) ... 102s Setting up python3-pytest (9.0.2-2) ... 102s Setting up python3-cffi (2.0.0-2) ... 103s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 103s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 103s Setting up libsource-highlight4t64:arm64 (3.1.9-4.3build2) ... 103s Setting up python3-nbformat (5.10.4-1) ... 103s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 103s Setting up python3-bs4 (4.14.3-2build1) ... 103s Setting up python3-bleach (6.3.0-1) ... 103s Setting up python3-matplotlib-inline (0.2.1-1) ... 104s Setting up python3-comm (0.2.1-1build1) ... 104s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 104s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 104s Setting up python3-executing (2.2.1-0.1) ... 104s Setting up python3-zmq (27.1.0-1) ... 105s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 105s Setting up python3-argon2 (25.1.0-2) ... 105s Setting up libpython3.14:arm64 (3.14.2-1) ... 105s Setting up python3-jupyter-client (8.7.0-1) ... 105s Setting up jupyter-core (5.9.1-1) ... 105s Setting up python3.14 (3.14.2-1) ... 106s Setting up python3-stack-data (0.6.3-3) ... 107s Setting up python3-all (3.13.9-3) ... 107s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 107s Setting up python3-nbclient (0.10.4-1) ... 107s Setting up gdb (17.1-1ubuntu2) ... 107s Setting up python3-ipython (8.35.0-2) ... 108s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 108s return result 108s Setting up python3-nbconvert (7.16.6-1) ... 108s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 109s Setting up python3-ipykernel (6.30.1-1) ... 110s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 110s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 110s Processing triggers for systemd (259-1ubuntu2) ... 110s Processing triggers for man-db (2.13.1-1) ... 111s Processing triggers for libc-bin (2.42-2ubuntu4) ... 112s autopkgtest [05:44:52]: test pytest: [----------------------- 112s Testing with python3.14 113s *** 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 116s ============================= test session starts ============================== 116s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 116s rootdir: /tmp/autopkgtest.CeZch0/autopkgtest_tmp 116s plugins: typeguard-4.4.4 116s collected 330 items / 6 deselected / 324 selected 116s 116s auth/tests/test_login.py .. [ 0%] 117s auth/tests/test_security.py .... [ 1%] 117s bundler/tests/test_bundler_api.py ..... [ 3%] 117s bundler/tests/test_bundler_tools.py ............. [ 7%] 117s bundler/tests/test_bundlerextension.py ... [ 8%] 118s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 118s services/api/tests/test_api.py ... [ 11%] 118s services/config/tests/test_config_api.py ... [ 12%] 118s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 119s ................s...........ss..s......................... [ 38%] 119s services/contents/tests/test_fileio.py ... [ 39%] 119s services/contents/tests/test_largefilemanager.py . [ 39%] 120s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 120s .... [ 50%] 131s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 131s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 132s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 132s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 133s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 134s F [ 66%] 138s terminal/tests/test_terminals_api.py ........ [ 68%] 138s tests/test_config_manager.py . [ 68%] 138s tests/test_files.py ..... [ 70%] 138s tests/test_gateway.py ...... [ 72%] 138s tests/test_i18n.py . [ 72%] 138s tests/test_log.py . [ 72%] 139s tests/test_nbextensions.py ................................... [ 83%] 140s tests/test_notebookapp.py .......................... [ 91%] 141s tests/test_paths.py ... [ 92%] 141s tests/test_serialize.py .. [ 93%] 141s tests/test_serverextensions.py ..... [ 94%] 142s tests/test_traittypes.py ........... [ 98%] 143s tests/test_utils.py ....s [ 99%] 143s tree/tests/test_tree_handler.py . [100%] 143s 143s ==================================== ERRORS ==================================== 143s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 143s 143s self = 143s 143s def tearDown(self): 143s for k in self.kern_api.list().json(): 143s > self.kern_api.shutdown(k['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/821ff201-7f97-4408-8a92-67b181f7e24a 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 143s from ._abc import * 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 143s import functools 143s File "/usr/lib/python3.13/functools.py", line 18, in 143s from collections import namedtuple 143s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 143s from keyword import iskeyword as _iskeyword 143s File "", line 1360, in _find_and_load 143s File "", line 1322, in _find_and_load_unlocked 143s File "", line 1262, in _find_spec 143s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 143s method_name = 'spec_for_{fullname}'.format(**locals()) 143s KeyboardInterrupt 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 143s from .connect import * # noqa: F403 143s ^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 143s import jupyter_client 143s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 143s from .asynchronous import AsyncKernelClient 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 143s from .client import AsyncKernelClient # noqa 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 143s import zmq.asyncio 143s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 143s import asyncio 143s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 143s from .base_events import * 143s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 143s from . import coroutines 143s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 143s import inspect 143s File "/usr/lib/python3.13/inspect.py", line 146, in 143s import dis 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 935, in _load_unlocked 143s File "", line 1019, in exec_module 143s File "", line 1152, in get_code 143s File "", line 781, in _compile_bytecode 143s KeyboardInterrupt 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4d81_ngf/runtime/kernel-821ff201-7f97-4408-8a92-67b181f7e24a.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51625 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60117 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 821ff201-7f97-4408-8a92-67b181f7e24a, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.280000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.700000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4d81_ngf/runtime/kernel-b8d102fd-ae87-4ba2-ae9a-f6a58156dcee.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42111 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37125 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: b8d102fd-ae87-4ba2-ae9a-f6a58156dcee, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.880000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.900000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b8d102fd-ae87-4ba2-ae9a-f6a58156dcee 143s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b8d102fd-ae87-4ba2-ae9a-f6a58156dcee/interrupt (::1) 2.530000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 143s yield maybe_future(km.restart_kernel(kernel_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 143s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 143s await ensure_async(kernel.restart_kernel(now=now)) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 143s await self._async_shutdown_kernel(now=now, restart=True) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/b8d102fd-ae87-4ba2-ae9a-f6a58156dcee/restart (::1) 8.600000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 821ff201-7f97-4408-8a92-67b181f7e24a 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 821ff201-7f97-4408-8a92-67b181f7e24a 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/821ff201-7f97-4408-8a92-67b181f7e24a (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/821ff201-7f97-4408-8a92-67b181f7e24a', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 143s yielded = ctx_run(next, result) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 143s yield maybe_future(km.shutdown_kernel(kernel_id)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 143s 143s self = 143s 143s def tearDown(self): 143s for k in self.kern_api.list().json(): 143s > self.kern_api.shutdown(k['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/27a650d2-1b1e-456d-aae7-b603f0010e6d 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Fatal Python error: init_import_site: Failed to import the site module 143s Python runtime state: initialized 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/site.py", line 79, in 143s import os 143s File "/usr/lib/python3.13/os.py", line 27, in 143s import stat as st 143s File "", line 1357, in _find_and_load 143s File "", line 418, in __enter__ 143s File "", line 311, in acquire 143s File "", line 170, in __enter__ 143s File "", line 132, in setdefault 143s File "", line 74, in __new__ 143s KeyboardInterrupt 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7mzd54dx/runtime/kernel-27a650d2-1b1e-456d-aae7-b603f0010e6d.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50697 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35593 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27a650d2-1b1e-456d-aae7-b603f0010e6d, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.360000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7mzd54dx/runtime/kernel-66d060fa-bb6e-4c20-81cb-9a216966f0a4.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49391 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52393 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 66d060fa-bb6e-4c20-81cb-9a216966f0a4, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.600000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.360000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 66d060fa-bb6e-4c20-81cb-9a216966f0a4 143s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/66d060fa-bb6e-4c20-81cb-9a216966f0a4/interrupt (::1) 2.360000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 143s yield maybe_future(km.restart_kernel(kernel_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 143s result = coro.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 143s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 143s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 143s yield self # This tells Task to wait for completion. 143s ^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 143s await ensure_async(kernel.restart_kernel(now=now)) 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 143s await self._async_shutdown_kernel(now=now, restart=True) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/66d060fa-bb6e-4c20-81cb-9a216966f0a4/restart (::1) 4.610000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.240000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27a650d2-1b1e-456d-aae7-b603f0010e6d 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27a650d2-1b1e-456d-aae7-b603f0010e6d 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/27a650d2-1b1e-456d-aae7-b603f0010e6d (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/27a650d2-1b1e-456d-aae7-b603f0010e6d', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 143s yield maybe_future(km.shutdown_kernel(kernel_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s --------------------------- Captured stderr teardown --------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 143s from .connect import * # noqa: F403 143s ^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 143s import jupyter_client 143s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 143s from .asynchronous import AsyncKernelClient 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 143s from .client import AsyncKernelClient # noqa 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 143s import zmq.asyncio 143s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 143s from zmq import backend 143s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 143s _ns = select_backend(first) 143s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 143s mod = import_module(name) 143s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 143s return _bootstrap._gcd_import(name[level:], package, level) 143s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 143s from . import _zmq 143s File "", line 645, in parent 143s KeyboardInterrupt 143s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/799ae493-ac9a-489d-85a5-c938a33d8445 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-65e30d34-31e7-4a7d-9906-153a128bf7a6.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35389 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60205 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 65e30d34-31e7-4a7d-9906-153a128bf7a6, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.570000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.940000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.690000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.670000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c649e1f4-2cc0-45e8-8390-4deb63c02166 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c649e1f4-2cc0-45e8-8390-4deb63c02166 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a56979b5-d936-4667-9196-0d9bd0a95c9e (::1) 2.420000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65e30d34-31e7-4a7d-9906-153a128bf7a6 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65e30d34-31e7-4a7d-9906-153a128bf7a6 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/799ae493-ac9a-489d-85a5-c938a33d8445 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/799ae493-ac9a-489d-85a5-c938a33d8445', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/799ae493-ac9a-489d-85a5-c938a33d8445 (::1) 7.000000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 143s from .connect import * # noqa: F403 143s ^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 143s from subprocess import PIPE, Popen 143s File "/usr/lib/python3.13/subprocess.py", line 46, in 143s import locale 143s File "/usr/lib/python3.13/locale.py", line 47, in 143s from _locale import * 143s KeyboardInterrupt 143s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 143s from .connect import * # noqa: F403 143s ^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 143s import jupyter_client 143s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 143s from .asynchronous import AsyncKernelClient 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 143s from .client import AsyncKernelClient # noqa 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 143s import zmq.asyncio 143s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 143s from zmq import backend 143s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 143s _ns = select_backend(first) 143s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 143s mod = import_module(name) 143s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 143s return _bootstrap._gcd_import(name[level:], package, level) 143s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 143s from . import _zmq 143s File "_zmq.py", line 39, in init zmq.backend.cython._zmq 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 935, in _load_unlocked 143s File "", line 1019, in exec_module 143s File "", line 1115, in get_code 143s File "", line 1214, in get_data 143s KeyboardInterrupt 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-f24c31cd-6052-44e8-a1d5-1e66ed742456.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49287 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41343 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: f24c31cd-6052-44e8-a1d5-1e66ed742456, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.890000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-71ef972b-cd73-4de3-a791-2f17db1990a3.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55187 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44091 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 71ef972b-cd73-4de3-a791-2f17db1990a3, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.180000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f24c31cd-6052-44e8-a1d5-1e66ed742456 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f24c31cd-6052-44e8-a1d5-1e66ed742456 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 143s km.shutdown_kernel(before['kernel']['id']) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 15.130000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 4.590000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71ef972b-cd73-4de3-a791-2f17db1990a3 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71ef972b-cd73-4de3-a791-2f17db1990a3 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 9.510000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 143s from ._local import * 143s File "/usr/lib/python3.13/pathlib/_local.py", line 29, in 143s class _PathParents(Sequence): 143s ...<25 lines>... 143s return "<{}.parents>".format(type(self._path).__name__) 143s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 143s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 143s KeyboardInterrupt 143s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.020000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-5261a6eb-69a6-417a-ad73-678d56ce2436.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53741 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38589 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5261a6eb-69a6-417a-ad73-678d56ce2436, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71ef972b-cd73-4de3-a791-2f17db1990a3 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71ef972b-cd73-4de3-a791-2f17db1990a3 143s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 18.660000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.840000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5261a6eb-69a6-417a-ad73-678d56ce2436 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5261a6eb-69a6-417a-ad73-678d56ce2436 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 143s from ._abc import * 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 403, in 143s class PathBase(PurePathBase): 143s ...<526 lines>... 143s raise UnsupportedOperation(self._unsupported_msg('as_uri()')) 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 421, in PathBase 143s @classmethod 143s ^^^^^^^^^^^ 143s KeyboardInterrupt 143s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/65dd1dc0-2ea1-4260-8b36-4c181c31bbc4 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-68ecf101-23c8-4b2d-beaf-c22bc91c05cc.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52137 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55145 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 68ecf101-23c8-4b2d-beaf-c22bc91c05cc, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.370000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.720000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.300000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a5a6cfa-4ae9-4504-81c0-9dd5b009c2b1 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a5a6cfa-4ae9-4504-81c0-9dd5b009c2b1 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/52fc245f-f080-4bf5-bf2c-37ecd3e7476e (::1) 2.520000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 68ecf101-23c8-4b2d-beaf-c22bc91c05cc 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 68ecf101-23c8-4b2d-beaf-c22bc91c05cc 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/65dd1dc0-2ea1-4260-8b36-4c181c31bbc4 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/65dd1dc0-2ea1-4260-8b36-4c181c31bbc4', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/65dd1dc0-2ea1-4260-8b36-4c181c31bbc4 (::1) 6.460000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 143s from .connect import * # noqa: F403 143s ^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 143s from subprocess import PIPE, Popen 143s File "/usr/lib/python3.13/subprocess.py", line 51, in 143s import threading 143s File "", line 1360, in _find_and_load 143s File "", line 1322, in _find_and_load_unlocked 143s File "", line 1262, in _find_spec 143s File "", line 1556, in find_spec 143s File "", line 1530, in _get_spec 143s File "", line 1662, in find_spec 143s File "", line 166, in _path_isfile 143s File "", line 158, in _path_is_mode_type 143s File "", line 152, in _path_stat 143s KeyboardInterrupt 143s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 143s from .connect import * # noqa: F403 143s ^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 143s import jupyter_client 143s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 143s from .asynchronous import AsyncKernelClient 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 143s from .client import AsyncKernelClient # noqa 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 143s import zmq.asyncio 143s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 143s from zmq import backend 143s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 143s _ns = select_backend(first) 143s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 143s mod = import_module(name) 143s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 143s return _bootstrap._gcd_import(name[level:], package, level) 143s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 143s from . import _zmq 143s File "", line 645, in parent 143s KeyboardInterrupt 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50503 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45119 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.430000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-05e02b9c-1501-4cc1-a582-e11478a20377.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42523 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42575 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 05e02b9c-1501-4cc1-a582-e11478a20377, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.130000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 143s yield maybe_future( 143s km.shutdown_kernel(before['kernel']['id']) 143s ) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 15.930000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.000000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05e02b9c-1501-4cc1-a582-e11478a20377 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05e02b9c-1501-4cc1-a582-e11478a20377 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 6.970000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 946, in _load_unlocked 143s KeyboardInterrupt 143s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.110000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-0792ca0f-e1cd-4a35-816b-62d7e9cd3e15.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51807 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36951 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0792ca0f-e1cd-4a35-816b-62d7e9cd3e15, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05e02b9c-1501-4cc1-a582-e11478a20377 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05e02b9c-1501-4cc1-a582-e11478a20377 143s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 18.610000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.910000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0792ca0f-e1cd-4a35-816b-62d7e9cd3e15 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0792ca0f-e1cd-4a35-816b-62d7e9cd3e15 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s --------------------------- Captured stderr teardown --------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 143s from ._abc import * 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 143s from glob import _Globber, _no_recurse_symlinks 143s File "/usr/lib/python3.13/glob.py", line 5, in 143s import re 143s File "/usr/lib/python3.13/re/__init__.py", line 125, in 143s import enum 143s File "/usr/lib/python3.13/enum.py", line 1109, in 143s class Enum(metaclass=EnumType): 143s ...<230 lines>... 143s return self._value_ 143s File "/usr/lib/python3.13/enum.py", line 578, in __new__ 143s classdict.update(enum_class.__dict__) 143s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 143s KeyboardInterrupt 143s =================================== FAILURES =================================== 143s ______________________ KernelAPITest.test_default_kernel _______________________ 143s 143s self = 143s 143s def tearDown(self): 143s for k in self.kern_api.list().json(): 143s > self.kern_api.shutdown(k['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/bf5e91b2-4de9-4c12-8518-16a9535c22b8 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ------------------------------ Captured log setup ------------------------------ 143s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp4d81_ngf/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp4d81_ngf/etc/jupyter'] for config files 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4d81_ngf/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4d81_ngf/config 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4d81_ngf/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4d81_ngf/config 143s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp4d81_ngf/notebooks 143s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 143s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 143s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 143s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 143s WARNING NotebookApp:handlers.py:612 Forbidden 143s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.710000ms referer=None 143s ----------------------------- Captured stderr call ----------------------------- 143s Could not import runpy module 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4d81_ngf/runtime/kernel-bf5e91b2-4de9-4c12-8518-16a9535c22b8.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36187 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52517 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: bf5e91b2-4de9-4c12-8518-16a9535c22b8, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 54.070000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.180000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bf5e91b2-4de9-4c12-8518-16a9535c22b8 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bf5e91b2-4de9-4c12-8518-16a9535c22b8 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/bf5e91b2-4de9-4c12-8518-16a9535c22b8 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/bf5e91b2-4de9-4c12-8518-16a9535c22b8', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 143s yielded = ctx_run(next, result) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 143s yield maybe_future(km.shutdown_kernel(kernel_id)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s --------------------------- Captured stderr teardown --------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 15, in 143s import importlib.util 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 935, in _load_unlocked 143s File "", line 1019, in exec_module 143s File "", line 1115, in get_code 143s File "", line 1215, in get_data 143s KeyboardInterrupt 143s ______________________ KernelAPITest.test_kernel_handler _______________________ 143s 143s self = 143s 143s def test_kernel_handler(self): 143s # GET kernel with given id 143s kid = self.kern_api.start().json()['id'] 143s r = self.kern_api.get(kid) 143s kern1 = r.json() 143s self.assertEqual(r.status_code, 200) 143s assert isinstance(kern1, dict) 143s self.assertIn('id', kern1) 143s self.assertEqual(kern1['id'], kid) 143s 143s # Request a bad kernel id and check that a JSON 143s # message is returned! 143s bad_id = '111-111-111-111-111' 143s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 143s self.kern_api.get(bad_id) 143s 143s # DELETE kernel with id 143s > r = self.kern_api.shutdown(kid) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/902c547d-84b7-413f-84a4-71a8f96a94f7 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 143s from ._local import * 143s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 143s class PureWindowsPath(PurePath): 143s ...<7 lines>... 143s __slots__ = () 143s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 143s import ntpath 143s File "", line 1360, in _find_and_load 143s File "", line 1322, in _find_and_load_unlocked 143s File "", line 1262, in _find_spec 143s File "", line 1556, in find_spec 143s File "", line 1530, in _get_spec 143s File "", line 1629, in find_spec 143s File "", line 152, in _path_stat 143s KeyboardInterrupt 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4d81_ngf/runtime/kernel-902c547d-84b7-413f-84a4-71a8f96a94f7.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34203 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34809 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 902c547d-84b7-413f-84a4-71a8f96a94f7, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.660000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/902c547d-84b7-413f-84a4-71a8f96a94f7 (::1) 0.750000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s 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 143s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 143s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.170000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 902c547d-84b7-413f-84a4-71a8f96a94f7 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 902c547d-84b7-413f-84a4-71a8f96a94f7 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/902c547d-84b7-413f-84a4-71a8f96a94f7 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/902c547d-84b7-413f-84a4-71a8f96a94f7', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 143s yielded = ctx_run(next, result) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 143s yield maybe_future(km.shutdown_kernel(kernel_id)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/902c547d-84b7-413f-84a4-71a8f96a94f7 (::1) 6.680000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.730000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for bf5e91b2-4de9-4c12-8518-16a9535c22b8 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: bf5e91b2-4de9-4c12-8518-16a9535c22b8 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/bf5e91b2-4de9-4c12-8518-16a9535c22b8 (::1) 1.130000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 902c547d-84b7-413f-84a4-71a8f96a94f7 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 902c547d-84b7-413f-84a4-71a8f96a94f7 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/902c547d-84b7-413f-84a4-71a8f96a94f7 (::1) 1.620000ms 143s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 143s 143s self = 143s 143s def test_main_kernel_handler(self): 143s # POST request 143s r = self.kern_api.start() 143s kern1 = r.json() 143s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 143s self.assertEqual(r.status_code, 201) 143s self.assertIsInstance(kern1, dict) 143s 143s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 143s expected_csp = '; '.join([ 143s "frame-ancestors 'self'", 143s 'report-uri ' + report_uri, 143s "default-src 'none'" 143s ]) 143s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 143s 143s # GET request 143s r = self.kern_api.list() 143s self.assertEqual(r.status_code, 200) 143s assert isinstance(r.json(), list) 143s self.assertEqual(r.json()[0]['id'], kern1['id']) 143s self.assertEqual(r.json()[0]['name'], kern1['name']) 143s 143s # create another kernel and check that they both are added to the 143s # list of kernels from a GET request 143s kern2 = self.kern_api.start().json() 143s assert isinstance(kern2, dict) 143s r = self.kern_api.list() 143s kernels = r.json() 143s self.assertEqual(r.status_code, 200) 143s assert isinstance(kernels, list) 143s self.assertEqual(len(kernels), 2) 143s 143s # Interrupt a kernel 143s r = self.kern_api.interrupt(kern2['id']) 143s self.assertEqual(r.status_code, 204) 143s 143s # Restart a kernel 143s > r = self.kern_api.restart(kern2['id']) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 143s return self._req('POST', url_path_join(id, 'restart')) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/b8d102fd-ae87-4ba2-ae9a-f6a58156dcee/restart 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 143s from ._abc import * 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 143s import functools 143s File "/usr/lib/python3.13/functools.py", line 18, in 143s from collections import namedtuple 143s File "/usr/lib/python3.13/collections/__init__.py", line 38, in 143s from keyword import iskeyword as _iskeyword 143s File "", line 1360, in _find_and_load 143s File "", line 1322, in _find_and_load_unlocked 143s File "", line 1262, in _find_spec 143s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 143s method_name = 'spec_for_{fullname}'.format(**locals()) 143s KeyboardInterrupt 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 143s from .connect import * # noqa: F403 143s ^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 143s import jupyter_client 143s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 143s from .asynchronous import AsyncKernelClient 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 143s from .client import AsyncKernelClient # noqa 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 143s import zmq.asyncio 143s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 143s import asyncio 143s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 143s from .base_events import * 143s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 143s from . import coroutines 143s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 143s import inspect 143s File "/usr/lib/python3.13/inspect.py", line 146, in 143s import dis 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 935, in _load_unlocked 143s File "", line 1019, in exec_module 143s File "", line 1152, in get_code 143s File "", line 781, in _compile_bytecode 143s KeyboardInterrupt 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4d81_ngf/runtime/kernel-821ff201-7f97-4408-8a92-67b181f7e24a.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51625 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60117 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 821ff201-7f97-4408-8a92-67b181f7e24a, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.280000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.700000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4d81_ngf/runtime/kernel-b8d102fd-ae87-4ba2-ae9a-f6a58156dcee.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42111 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37125 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: b8d102fd-ae87-4ba2-ae9a-f6a58156dcee, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.880000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.900000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: b8d102fd-ae87-4ba2-ae9a-f6a58156dcee 143s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/b8d102fd-ae87-4ba2-ae9a-f6a58156dcee/interrupt (::1) 2.530000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 143s yield maybe_future(km.restart_kernel(kernel_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 143s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 143s await ensure_async(kernel.restart_kernel(now=now)) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 143s await self._async_shutdown_kernel(now=now, restart=True) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/b8d102fd-ae87-4ba2-ae9a-f6a58156dcee/restart (::1) 8.600000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 821ff201-7f97-4408-8a92-67b181f7e24a 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 821ff201-7f97-4408-8a92-67b181f7e24a 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/821ff201-7f97-4408-8a92-67b181f7e24a (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/821ff201-7f97-4408-8a92-67b181f7e24a', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 143s yielded = ctx_run(next, result) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 143s yield maybe_future(km.shutdown_kernel(kernel_id)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ________________________ KernelAPITest.test_no_kernels _________________________ 143s 143s self = 143s 143s def test_no_kernels(self): 143s """Make sure there are no kernels running at the start""" 143s kernels = self.kern_api.list().json() 143s > self.assertEqual(kernels, []) 143s E AssertionError: Lists differ: [{'id': '821ff201-7f97-4408-8a92-67b181f7e[281 chars]: 0}] != [] 143s E 143s E First list contains 2 additional elements. 143s E First extra element 0: 143s E {'id': '821ff201-7f97-4408-8a92-67b181f7e24a', 'name': 'python3', 'last_activity': '2026-01-30T05:45:00.536711Z', 'execution_state': 'starting', 'connections': 0} 143s E 143s E + [] 143s E - [{'connections': 0, 143s E - 'execution_state': 'starting', 143s E - 'id': '821ff201-7f97-4408-8a92-67b181f7e24a', 143s E - 'last_activity': '2026-01-30T05:45:00.536711Z', 143s E - 'name': 'python3'}, 143s E - {'connections': 0, 143s E - 'execution_state': 'starting', 143s E - 'id': 'b8d102fd-ae87-4ba2-ae9a-f6a58156dcee', 143s E - 'last_activity': '2026-01-30T05:45:00.560535Z', 143s E - 'name': 'python3'}] 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.000000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 821ff201-7f97-4408-8a92-67b181f7e24a 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 821ff201-7f97-4408-8a92-67b181f7e24a 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/821ff201-7f97-4408-8a92-67b181f7e24a (::1) 0.970000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b8d102fd-ae87-4ba2-ae9a-f6a58156dcee 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b8d102fd-ae87-4ba2-ae9a-f6a58156dcee 143s ---------------------------- Captured log teardown ----------------------------- 143s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 143s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 143s _____________________ AsyncKernelAPITest.test_connections ______________________ 143s 143s self = 143s 143s def tearDown(self): 143s for k in self.kern_api.list().json(): 143s > self.kern_api.shutdown(k['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ------------------------------ Captured log setup ------------------------------ 143s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp7mzd54dx/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp7mzd54dx/etc/jupyter'] for config files 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7mzd54dx/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7mzd54dx/config 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7mzd54dx/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7mzd54dx/config 143s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp7mzd54dx/notebooks 143s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 143s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 143s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 143s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 143s WARNING NotebookApp:handlers.py:612 Forbidden 143s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.700000ms referer=None 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7mzd54dx/runtime/kernel-284ba0a9-eacc-4dee-898f-3991cdb097b6.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57409 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40455 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 284ba0a9-eacc-4dee-898f-3991cdb097b6, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.280000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6 (::1) 0.900000ms 143s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6/channels 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 143s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56003 143s DEBUG NotebookApp:kernelmanager.py:423 activity on 284ba0a9-eacc-4dee-898f-3991cdb097b6: status (starting) 143s DEBUG NotebookApp:kernelmanager.py:423 activity on 284ba0a9-eacc-4dee-898f-3991cdb097b6: status (busy) 143s DEBUG NotebookApp:kernelmanager.py:423 activity on 284ba0a9-eacc-4dee-898f-3991cdb097b6: status (idle) 143s 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/'}]} 143s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 284ba0a9-eacc-4dee-898f-3991cdb097b6) to 5.4 (client). 143s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6/channels (::1) 603.140000ms 143s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6/channels 143s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40455 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56003 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57409 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52779 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56003 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57409 143s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 143s Setting websocket_ping_timeout=30000 143s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6 (::1) 0.890000ms 143s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:kernelmanager.py:423 activity on 284ba0a9-eacc-4dee-898f-3991cdb097b6: status (busy) 143s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:kernelmanager.py:423 activity on 284ba0a9-eacc-4dee-898f-3991cdb097b6: status (busy) 143s DEBUG NotebookApp:kernelmanager.py:423 activity on 284ba0a9-eacc-4dee-898f-3991cdb097b6: status (idle) 143s DEBUG NotebookApp:kernelmanager.py:423 activity on 284ba0a9-eacc-4dee-898f-3991cdb097b6: status (idle) 143s DEBUG NotebookApp:handlers.py:579 Websocket closed 284ba0a9-eacc-4dee-898f-3991cdb097b6:74d04bef-1d5fa9de45ffbb0ba48e9362 143s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 284ba0a9-eacc-4dee-898f-3991cdb097b6:74d04bef-1d5fa9de45ffbb0ba48e9362 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 284ba0a9-eacc-4dee-898f-3991cdb097b6:iopub 143s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 284ba0a9-eacc-4dee-898f-3991cdb097b6:iopub 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6 (::1) 1.020000ms 143s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 284ba0a9-eacc-4dee-898f-3991cdb097b6:iopub 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6 (::1) 0.770000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 284ba0a9-eacc-4dee-898f-3991cdb097b6:74d04bef-1d5fa9de45ffbb0ba48e9362 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 143s yield maybe_future(km.shutdown_kernel(kernel_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6 (::1) 8.940000ms referer=None 143s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 143s 143s self = 143s 143s def tearDown(self): 143s for k in self.kern_api.list().json(): 143s > self.kern_api.shutdown(k['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d96db5cc-7e19-4b18-9c1f-1ad83da5e162 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7mzd54dx/runtime/kernel-d96db5cc-7e19-4b18-9c1f-1ad83da5e162.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34183 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53317 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: d96db5cc-7e19-4b18-9c1f-1ad83da5e162, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.250000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.670000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/284ba0a9-eacc-4dee-898f-3991cdb097b6 (::1) 1.630000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d96db5cc-7e19-4b18-9c1f-1ad83da5e162 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d96db5cc-7e19-4b18-9c1f-1ad83da5e162 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d96db5cc-7e19-4b18-9c1f-1ad83da5e162 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d96db5cc-7e19-4b18-9c1f-1ad83da5e162', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 143s yield maybe_future(km.shutdown_kernel(kernel_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s --------------------------- Captured stderr teardown --------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 143s from ._abc import * 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 143s import functools 143s File "/usr/lib/python3.13/functools.py", line 18, in 143s from collections import namedtuple 143s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 143s from operator import eq as _eq 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 935, in _load_unlocked 143s File "", line 1019, in exec_module 143s File "", line 1152, in get_code 143s File "", line 781, in _compile_bytecode 143s KeyboardInterrupt 143s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 143s 143s self = 143s 143s def test_kernel_handler(self): 143s # GET kernel with given id 143s kid = self.kern_api.start().json()['id'] 143s r = self.kern_api.get(kid) 143s kern1 = r.json() 143s self.assertEqual(r.status_code, 200) 143s assert isinstance(kern1, dict) 143s self.assertIn('id', kern1) 143s self.assertEqual(kern1['id'], kid) 143s 143s # Request a bad kernel id and check that a JSON 143s # message is returned! 143s bad_id = '111-111-111-111-111' 143s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 143s self.kern_api.get(bad_id) 143s 143s # DELETE kernel with id 143s > r = self.kern_api.shutdown(kid) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/68e98b19-6c97-4ab7-8142-450b9546aed8 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7mzd54dx/runtime/kernel-68e98b19-6c97-4ab7-8142-450b9546aed8.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34131 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42287 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 68e98b19-6c97-4ab7-8142-450b9546aed8, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.200000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/68e98b19-6c97-4ab7-8142-450b9546aed8 (::1) 0.760000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s 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 143s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 143s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 4.410000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 68e98b19-6c97-4ab7-8142-450b9546aed8 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 68e98b19-6c97-4ab7-8142-450b9546aed8 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/68e98b19-6c97-4ab7-8142-450b9546aed8 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/68e98b19-6c97-4ab7-8142-450b9546aed8', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 143s yield maybe_future(km.shutdown_kernel(kernel_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/68e98b19-6c97-4ab7-8142-450b9546aed8 (::1) 13.580000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 6.500000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d96db5cc-7e19-4b18-9c1f-1ad83da5e162 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d96db5cc-7e19-4b18-9c1f-1ad83da5e162 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d96db5cc-7e19-4b18-9c1f-1ad83da5e162 (::1) 1.920000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 68e98b19-6c97-4ab7-8142-450b9546aed8 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 68e98b19-6c97-4ab7-8142-450b9546aed8 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/68e98b19-6c97-4ab7-8142-450b9546aed8 (::1) 2.100000ms 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 143s from ._abc import * 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 143s from glob import _Globber, _no_recurse_symlinks 143s File "/usr/lib/python3.13/glob.py", line 3, in 143s import contextlib 143s File "/usr/lib/python3.13/contextlib.py", line 433, in 143s class suppress(AbstractContextManager): 143s ...<35 lines>... 143s return False 143s File "/usr/lib/python3.13/abc.py", line 106, in __new__ 143s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 143s KeyboardInterrupt 143s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 143s 143s self = 143s 143s def test_main_kernel_handler(self): 143s # POST request 143s r = self.kern_api.start() 143s kern1 = r.json() 143s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 143s self.assertEqual(r.status_code, 201) 143s self.assertIsInstance(kern1, dict) 143s 143s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 143s expected_csp = '; '.join([ 143s "frame-ancestors 'self'", 143s 'report-uri ' + report_uri, 143s "default-src 'none'" 143s ]) 143s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 143s 143s # GET request 143s r = self.kern_api.list() 143s self.assertEqual(r.status_code, 200) 143s assert isinstance(r.json(), list) 143s self.assertEqual(r.json()[0]['id'], kern1['id']) 143s self.assertEqual(r.json()[0]['name'], kern1['name']) 143s 143s # create another kernel and check that they both are added to the 143s # list of kernels from a GET request 143s kern2 = self.kern_api.start().json() 143s assert isinstance(kern2, dict) 143s r = self.kern_api.list() 143s kernels = r.json() 143s self.assertEqual(r.status_code, 200) 143s assert isinstance(kernels, list) 143s self.assertEqual(len(kernels), 2) 143s 143s # Interrupt a kernel 143s r = self.kern_api.interrupt(kern2['id']) 143s self.assertEqual(r.status_code, 204) 143s 143s # Restart a kernel 143s > r = self.kern_api.restart(kern2['id']) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 143s return self._req('POST', url_path_join(id, 'restart')) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/66d060fa-bb6e-4c20-81cb-9a216966f0a4/restart 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Fatal Python error: init_import_site: Failed to import the site module 143s Python runtime state: initialized 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/site.py", line 79, in 143s import os 143s File "/usr/lib/python3.13/os.py", line 27, in 143s import stat as st 143s File "", line 1357, in _find_and_load 143s File "", line 418, in __enter__ 143s File "", line 311, in acquire 143s File "", line 170, in __enter__ 143s File "", line 132, in setdefault 143s File "", line 74, in __new__ 143s KeyboardInterrupt 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7mzd54dx/runtime/kernel-27a650d2-1b1e-456d-aae7-b603f0010e6d.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50697 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35593 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27a650d2-1b1e-456d-aae7-b603f0010e6d, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.360000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7mzd54dx/runtime/kernel-66d060fa-bb6e-4c20-81cb-9a216966f0a4.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49391 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52393 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 66d060fa-bb6e-4c20-81cb-9a216966f0a4, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.600000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.360000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 66d060fa-bb6e-4c20-81cb-9a216966f0a4 143s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/66d060fa-bb6e-4c20-81cb-9a216966f0a4/interrupt (::1) 2.360000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 143s yield maybe_future(km.restart_kernel(kernel_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 143s result = coro.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 143s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 143s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 143s yield self # This tells Task to wait for completion. 143s ^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 143s await ensure_async(kernel.restart_kernel(now=now)) 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 143s await self._async_shutdown_kernel(now=now, restart=True) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/66d060fa-bb6e-4c20-81cb-9a216966f0a4/restart (::1) 4.610000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.240000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27a650d2-1b1e-456d-aae7-b603f0010e6d 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27a650d2-1b1e-456d-aae7-b603f0010e6d 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/27a650d2-1b1e-456d-aae7-b603f0010e6d (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/27a650d2-1b1e-456d-aae7-b603f0010e6d', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 143s yield maybe_future(km.shutdown_kernel(kernel_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 143s 143s self = 143s 143s def test_no_kernels(self): 143s """Make sure there are no kernels running at the start""" 143s kernels = self.kern_api.list().json() 143s > self.assertEqual(kernels, []) 143s E AssertionError: Lists differ: [{'id': '27a650d2-1b1e-456d-aae7-b603f0010[281 chars]: 0}] != [] 143s E 143s E First list contains 2 additional elements. 143s E First extra element 0: 143s E {'id': '27a650d2-1b1e-456d-aae7-b603f0010e6d', 'name': 'python3', 'last_activity': '2026-01-30T05:45:01.614383Z', 'execution_state': 'starting', 'connections': 0} 143s E 143s E + [] 143s E - [{'connections': 0, 143s E - 'execution_state': 'starting', 143s E - 'id': '27a650d2-1b1e-456d-aae7-b603f0010e6d', 143s E - 'last_activity': '2026-01-30T05:45:01.614383Z', 143s E - 'name': 'python3'}, 143s E - {'connections': 0, 143s E - 'execution_state': 'starting', 143s E - 'id': '66d060fa-bb6e-4c20-81cb-9a216966f0a4', 143s E - 'last_activity': '2026-01-30T05:45:01.649611Z', 143s E - 'name': 'python3'}] 143s 143s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.960000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27a650d2-1b1e-456d-aae7-b603f0010e6d 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27a650d2-1b1e-456d-aae7-b603f0010e6d 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/27a650d2-1b1e-456d-aae7-b603f0010e6d (::1) 1.470000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 66d060fa-bb6e-4c20-81cb-9a216966f0a4 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 66d060fa-bb6e-4c20-81cb-9a216966f0a4 143s ---------------------------- Captured log teardown ----------------------------- 143s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d96db5cc-7e19-4b18-9c1f-1ad83da5e162 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 68e98b19-6c97-4ab7-8142-450b9546aed8 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27a650d2-1b1e-456d-aae7-b603f0010e6d 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 284ba0a9-eacc-4dee-898f-3991cdb097b6 143s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 143s __________________________ SessionAPITest.test_create __________________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6edcf6b3-eca7-4440-882a-603e5989930e 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ------------------------------ Captured log setup ------------------------------ 143s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpihhed5c3/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpihhed5c3/etc/jupyter'] for config files 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpihhed5c3/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpihhed5c3/config 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpihhed5c3/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpihhed5c3/config 143s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpihhed5c3/notebooks 143s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 143s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 143s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 143s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 143s WARNING NotebookApp:handlers.py:612 Forbidden 143s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.230000ms referer=None 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.160000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-57155925-8424-4b80-970d-01af08a438ac.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60755 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49433 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 57155925-8424-4b80-970d-01af08a438ac, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.720000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/6edcf6b3-eca7-4440-882a-603e5989930e (::1) 0.950000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 57155925-8424-4b80-970d-01af08a438ac 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 57155925-8424-4b80-970d-01af08a438ac 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6edcf6b3-eca7-4440-882a-603e5989930e (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6edcf6b3-eca7-4440-882a-603e5989930e', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6edcf6b3-eca7-4440-882a-603e5989930e (::1) 7.780000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 143s from ._local import * 143s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 143s class PureWindowsPath(PurePath): 143s ...<7 lines>... 143s __slots__ = () 143s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 143s import ntpath 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 935, in _load_unlocked 143s File "", line 1019, in exec_module 143s File "", line 1152, in get_code 143s File "", line 781, in _compile_bytecode 143s KeyboardInterrupt 143s __________________ SessionAPITest.test_create_console_session __________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4e92266e-7651-4b10-b614-53822d69c277 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-8bba297f-ce79-43c5-a637-6e3bffd56149.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47559 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55039 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8bba297f-ce79-43c5-a637-6e3bffd56149, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.100000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.140000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 57155925-8424-4b80-970d-01af08a438ac 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 57155925-8424-4b80-970d-01af08a438ac 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/6edcf6b3-eca7-4440-882a-603e5989930e (::1) 2.520000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8bba297f-ce79-43c5-a637-6e3bffd56149 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8bba297f-ce79-43c5-a637-6e3bffd56149 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4e92266e-7651-4b10-b614-53822d69c277 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4e92266e-7651-4b10-b614-53822d69c277', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4e92266e-7651-4b10-b614-53822d69c277 (::1) 7.280000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "", line 1360, in _find_and_load 143s File "", line 1322, in _find_and_load_unlocked 143s File "", line 1262, in _find_spec 143s File "", line 1556, in find_spec 143s File "", line 1530, in _get_spec 143s File "", line 1629, in find_spec 143s File "", line 152, in _path_stat 143s KeyboardInterrupt 143s ____________________ SessionAPITest.test_create_deprecated _____________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b97b1dd4-c4ca-4c11-bc67-30c84077fc75 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-0760d598-d9a6-403b-bf5e-dc7921446b1b.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52837 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54675 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0760d598-d9a6-403b-bf5e-dc7921446b1b, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.410000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8bba297f-ce79-43c5-a637-6e3bffd56149 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8bba297f-ce79-43c5-a637-6e3bffd56149 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4e92266e-7651-4b10-b614-53822d69c277 (::1) 1.030000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0760d598-d9a6-403b-bf5e-dc7921446b1b 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0760d598-d9a6-403b-bf5e-dc7921446b1b 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b97b1dd4-c4ca-4c11-bc67-30c84077fc75 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b97b1dd4-c4ca-4c11-bc67-30c84077fc75', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 143s from ._local import * 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 935, in _load_unlocked 143s File "", line 1019, in exec_module 143s File "", line 1115, in get_code 143s File "", line 1215, in get_data 143s KeyboardInterrupt 143s ___________________ SessionAPITest.test_create_file_session ____________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a56979b5-d936-4667-9196-0d9bd0a95c9e 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-c649e1f4-2cc0-45e8-8390-4deb63c02166.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42809 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43103 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: c649e1f4-2cc0-45e8-8390-4deb63c02166, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.420000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0760d598-d9a6-403b-bf5e-dc7921446b1b 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0760d598-d9a6-403b-bf5e-dc7921446b1b 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b97b1dd4-c4ca-4c11-bc67-30c84077fc75 (::1) 2.610000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c649e1f4-2cc0-45e8-8390-4deb63c02166 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c649e1f4-2cc0-45e8-8390-4deb63c02166 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a56979b5-d936-4667-9196-0d9bd0a95c9e (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a56979b5-d936-4667-9196-0d9bd0a95c9e', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a56979b5-d936-4667-9196-0d9bd0a95c9e (::1) 6.940000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 143s from ._local import * 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 935, in _load_unlocked 143s File "", line 1019, in exec_module 143s File "", line 1152, in get_code 143s File "", line 781, in _compile_bytecode 143s KeyboardInterrupt 143s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 143s 143s self = 143s 143s def test_create_with_kernel_id(self): 143s # create a new kernel 143s r = self.request('POST', 'api/kernels') 143s r.raise_for_status() 143s kernel = r.json() 143s 143s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 143s self.assertEqual(resp.status_code, 201) 143s newsession = resp.json() 143s self.assertIn('id', newsession) 143s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 143s self.assertEqual(newsession['kernel']['id'], kernel['id']) 143s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 143s 143s sessions = self.sess_api.list().json() 143s > self.assertEqual(sessions, [newsession]) 143s E AssertionError: Lists differ: [{'id': 'a56979b5-d936-4667-9196-0d9bd0a95c9e', 'p[553 chars]ne}}] != [{'id': '799ae493-ac9a-489d-85a5-c938a33d8445', 'p[279 chars]ne}}] 143s E 143s E First differing element 0: 143s E {'id': 'a56979b5-d936-4667-9196-0d9bd0a95c9e', 'p[218 chars]: 0}} 143s E {'id': '799ae493-ac9a-489d-85a5-c938a33d8445', 'p[278 chars]one}} 143s E 143s E First list contains 1 additional elements. 143s E First extra element 1: 143s E {'id': '799ae493-ac9a-489d-85a5-c938a33d8445', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '65e30d34-31e7-4a7d-9906-153a128bf7a6', 'name': 'python3', 'last_activity': '2026-01-30T05:45:11.988711Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 143s E 143s E Diff is 830 characters long. Set self.maxDiff to None to see it. 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-65e30d34-31e7-4a7d-9906-153a128bf7a6.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35389 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60205 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 65e30d34-31e7-4a7d-9906-153a128bf7a6, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 24.570000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.940000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.690000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.670000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c649e1f4-2cc0-45e8-8390-4deb63c02166 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c649e1f4-2cc0-45e8-8390-4deb63c02166 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a56979b5-d936-4667-9196-0d9bd0a95c9e (::1) 2.420000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65e30d34-31e7-4a7d-9906-153a128bf7a6 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65e30d34-31e7-4a7d-9906-153a128bf7a6 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/799ae493-ac9a-489d-85a5-c938a33d8445 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/799ae493-ac9a-489d-85a5-c938a33d8445', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/799ae493-ac9a-489d-85a5-c938a33d8445 (::1) 7.000000ms referer=None 143s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 143s 143s self = 143s 143s def test_modify_kernel_id(self): 143s before = self.sess_api.create('foo/nb1.ipynb').json() 143s sid = before['id'] 143s 143s # create a new kernel 143s r = self.request('POST', 'api/kernels') 143s r.raise_for_status() 143s kernel = r.json() 143s 143s # Attach our session to the existing kernel 143s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 143s return self._req('PATCH', id, body) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 143s from .connect import * # noqa: F403 143s ^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 143s import jupyter_client 143s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 143s from .asynchronous import AsyncKernelClient 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 143s from .client import AsyncKernelClient # noqa 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 143s import zmq.asyncio 143s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 143s from zmq import backend 143s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 143s _ns = select_backend(first) 143s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 143s mod = import_module(name) 143s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 143s return _bootstrap._gcd_import(name[level:], package, level) 143s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 143s from . import _zmq 143s File "_zmq.py", line 39, in init zmq.backend.cython._zmq 143s File "", line 1360, in _find_and_load 143s File "", line 1331, in _find_and_load_unlocked 143s File "", line 935, in _load_unlocked 143s File "", line 1019, in exec_module 143s File "", line 1115, in get_code 143s File "", line 1214, in get_data 143s KeyboardInterrupt 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-f24c31cd-6052-44e8-a1d5-1e66ed742456.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49287 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41343 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: f24c31cd-6052-44e8-a1d5-1e66ed742456, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.890000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-71ef972b-cd73-4de3-a791-2f17db1990a3.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55187 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44091 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 71ef972b-cd73-4de3-a791-2f17db1990a3, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.180000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f24c31cd-6052-44e8-a1d5-1e66ed742456 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f24c31cd-6052-44e8-a1d5-1e66ed742456 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 143s km.shutdown_kernel(before['kernel']['id']) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__i/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 143s gc.collect() 143s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 143s nit__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 15.130000ms referer=None 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 4.590000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71ef972b-cd73-4de3-a791-2f17db1990a3 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71ef972b-cd73-4de3-a791-2f17db1990a3 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 9.510000ms referer=None 143s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 143s 143s self = 143s 143s def test_modify_kernel_name(self): 143s before = self.sess_api.create('foo/nb1.ipynb').json() 143s sid = before['id'] 143s 143s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 143s self.assertEqual(after['id'], sid) 143s self.assertEqual(after['path'], before['path']) 143s self.assertEqual(after['type'], before['type']) 143s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 143s 143s # check kernel list, to be sure previous kernel was cleaned up 143s r = self.request('GET', 'api/kernels') 143s r.raise_for_status() 143s kernel_list = r.json() 143s after['kernel'].pop('last_activity') 143s [ k.pop('last_activity') for k in kernel_list ] 143s > self.assertEqual(kernel_list, [after['kernel']]) 143s E AssertionError: Lists differ: [{'id': 'f24c31cd-6052-44e8-a1d5-1e66ed742456', 'n[177 chars]: 0}] != [{'id': '5261a6eb-69a6-417a-ad73-678d56ce2436', 'n[61 chars]: 0}] 143s E 143s E First differing element 0: 143s E {'id': 'f24c31cd-6052-44e8-a1d5-1e66ed742456', 'n[60 chars]': 0} 143s E {'id': '5261a6eb-69a6-417a-ad73-678d56ce2436', 'n[60 chars]': 0} 143s E 143s E First list contains 1 additional elements. 143s E First extra element 1: 143s E {'id': '5261a6eb-69a6-417a-ad73-678d56ce2436', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 143s E 143s E [{'connections': 0, 143s E - 'execution_state': 'starting', 143s E - 'id': 'f24c31cd-6052-44e8-a1d5-1e66ed742456', 143s E - 'name': 'python3'}, 143s E - {'connections': 0, 143s E 'execution_state': 'starting', 143s E 'id': '5261a6eb-69a6-417a-ad73-678d56ce2436', 143s E 'name': 'python3'}] 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.020000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-5261a6eb-69a6-417a-ad73-678d56ce2436.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53741 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38589 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5261a6eb-69a6-417a-ad73-678d56ce2436, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71ef972b-cd73-4de3-a791-2f17db1990a3 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71ef972b-cd73-4de3-a791-2f17db1990a3 143s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 18.660000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.840000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5261a6eb-69a6-417a-ad73-678d56ce2436 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5261a6eb-69a6-417a-ad73-678d56ce2436 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/636554c0-c9f5-4a55-84d9-7cdc7397eef3', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s __________________ SessionAPITest.test_modify_path_deprecated __________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b5c94ccd-f165-4561-90f1-d7d336baea41 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-7738b7c8-22cd-47ad-bb5d-49d0f7d24f5d.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55655 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40509 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7738b7c8-22cd-47ad-bb5d-49d0f7d24f5d, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.910000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 143s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b5c94ccd-f165-4561-90f1-d7d336baea41 (::1) 2.390000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.720000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7738b7c8-22cd-47ad-bb5d-49d0f7d24f5d 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7738b7c8-22cd-47ad-bb5d-49d0f7d24f5d 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b5c94ccd-f165-4561-90f1-d7d336baea41 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b5c94ccd-f165-4561-90f1-d7d336baea41', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b5c94ccd-f165-4561-90f1-d7d336baea41 (::1) 7.020000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 143s from ._abc import * 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 403, in 143s class PathBase(PurePathBase): 143s ...<526 lines>... 143s raise UnsupportedOperation(self._unsupported_msg('as_uri()')) 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 421, in PathBase 143s @classmethod 143s ^^^^^^^^^^^ 143s KeyboardInterrupt 143s _______________________ SessionAPITest.test_modify_type ________________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4acc3330-888f-4aeb-922c-7c7700ea5ead 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpihhed5c3/runtime/kernel-b5bc3766-6240-4be7-be90-ce0b02ee4dc8.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49173 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58687 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: b5bc3766-6240-4be7-be90-ce0b02ee4dc8, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpihhed5c3/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.140000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/4acc3330-888f-4aeb-922c-7c7700ea5ead (::1) 1.000000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.990000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7738b7c8-22cd-47ad-bb5d-49d0f7d24f5d 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7738b7c8-22cd-47ad-bb5d-49d0f7d24f5d 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b5c94ccd-f165-4561-90f1-d7d336baea41 (::1) 2.450000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b5bc3766-6240-4be7-be90-ce0b02ee4dc8 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b5bc3766-6240-4be7-be90-ce0b02ee4dc8 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4acc3330-888f-4aeb-922c-7c7700ea5ead (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4acc3330-888f-4aeb-922c-7c7700ea5ead', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 143s yielded = self.gen.send(value) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 143s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 143s stopper = ensure_async(km.shutdown_kernel(now, restart)) 143s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 143s return _runner_map[name].run(inner) 143s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 143s return fut.result(None) 143s ~~~~~~~~~~^^^^^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 143s return self.__get_result() 143s ~~~~~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 143s raise self._exception 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4acc3330-888f-4aeb-922c-7c7700ea5ead (::1) 6.750000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 143s from ._version import ( 143s ...<4 lines>... 143s ) 143s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 143s match = re.match(pattern, __version__) 143s File "/usr/lib/python3.13/re/__init__.py", line 167, in match 143s return _compile(pattern, flags).match(string) 143s ~~~~~~~~^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 143s p = _compiler.compile(pattern, flags) 143s File "/usr/lib/python3.13/re/_compiler.py", line 748, in compile 143s p = _parser.parse(p, flags) 143s File "/usr/lib/python3.13/re/_parser.py", line 980, in parse 143s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 143s File "/usr/lib/python3.13/re/_parser.py", line 459, in _parse_sub 143s itemsappend(_parse(source, state, verbose, nested + 1, 143s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s not nested and not items)) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3.13/re/_parser.py", line 511, in _parse 143s def _parse(source, state, verbose, nested, first=False): 143s 143s KeyboardInterrupt 143s ---------------------------- Captured log teardown ----------------------------- 143s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f24c31cd-6052-44e8-a1d5-1e66ed742456 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b5bc3766-6240-4be7-be90-ce0b02ee4dc8 143s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 143s _______________________ AsyncSessionAPITest.test_create ________________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ed2b9b19-3ead-4f7d-a62a-790ad297e018 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ------------------------------ Captured log setup ------------------------------ 143s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpbks6_v8w/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpbks6_v8w/etc/jupyter'] for config files 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpbks6_v8w/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpbks6_v8w/config 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpbks6_v8w/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 143s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpbks6_v8w/config 143s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpbks6_v8w/notebooks 143s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 143s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 143s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 143s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 143s WARNING NotebookApp:handlers.py:612 Forbidden 143s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.080000ms referer=None 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.070000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-87a9f869-f3f8-4a79-bbc3-867407fd5af3.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36081 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41153 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 87a9f869-f3f8-4a79-bbc3-867407fd5af3, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.110000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/ed2b9b19-3ead-4f7d-a62a-790ad297e018 (::1) 2.060000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.190000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 87a9f869-f3f8-4a79-bbc3-867407fd5af3 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 87a9f869-f3f8-4a79-bbc3-867407fd5af3 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ed2b9b19-3ead-4f7d-a62a-790ad297e018 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ed2b9b19-3ead-4f7d-a62a-790ad297e018', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 143s from ._local import * 143s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 143s class PureWindowsPath(PurePath): 143s ...<7 lines>... 143s __slots__ = () 143s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 143s import ntpath 143s File "", line 1357, in _find_and_load 143s File "", line 418, in __enter__ 143s File "", line 311, in acquire 143s File "", line 170, in __enter__ 143s File "", line 132, in setdefault 143s File "", line 74, in __new__ 143s KeyboardInterrupt 143s _______________ AsyncSessionAPITest.test_create_console_session ________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1dd52e8d-0b15-43e1-8dae-77c0ff588dc8 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-66d7a03a-a98c-4bbf-8ee0-e71a7fc4657c.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54167 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55237 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 66d7a03a-a98c-4bbf-8ee0-e71a7fc4657c, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.410000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.270000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 87a9f869-f3f8-4a79-bbc3-867407fd5af3 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 87a9f869-f3f8-4a79-bbc3-867407fd5af3 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ed2b9b19-3ead-4f7d-a62a-790ad297e018 (::1) 2.380000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 66d7a03a-a98c-4bbf-8ee0-e71a7fc4657c 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 66d7a03a-a98c-4bbf-8ee0-e71a7fc4657c 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1dd52e8d-0b15-43e1-8dae-77c0ff588dc8 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1dd52e8d-0b15-43e1-8dae-77c0ff588dc8', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 143s from ._abc import * 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 403, in 143s class PathBase(PurePathBase): 143s ...<526 lines>... 143s raise UnsupportedOperation(self._unsupported_msg('as_uri()')) 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 739, in PathBase 143s @classmethod 143s ^^^^^^^^^^^ 143s KeyboardInterrupt 143s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a71160a8-ceff-4ffa-9d9d-b9a28a93dfcf 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-08f1f586-9477-4f45-a031-d553ae265e31.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59947 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35919 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 08f1f586-9477-4f45-a031-d553ae265e31, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.020000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 66d7a03a-a98c-4bbf-8ee0-e71a7fc4657c 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 66d7a03a-a98c-4bbf-8ee0-e71a7fc4657c 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1dd52e8d-0b15-43e1-8dae-77c0ff588dc8 (::1) 2.380000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 08f1f586-9477-4f45-a031-d553ae265e31 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 08f1f586-9477-4f45-a031-d553ae265e31 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a71160a8-ceff-4ffa-9d9d-b9a28a93dfcf (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a71160a8-ceff-4ffa-9d9d-b9a28a93dfcf', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s --------------------------- Captured stderr teardown --------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 143s from ._abc import * 143s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 143s from glob import _Globber, _no_recurse_symlinks 143s File "/usr/lib/python3.13/glob.py", line 5, in 143s import re 143s File "/usr/lib/python3.13/re/__init__.py", line 143, in 143s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 143s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3.13/enum.py", line 1791, in convert_class 143s for name, obj in cls.__dict__.items(): 143s ~~~~~~~~~~~~~~~~~~^^ 143s KeyboardInterrupt 143s _________________ AsyncSessionAPITest.test_create_file_session _________________ 143s 143s @self.addCleanup 143s def cleanup_sessions(): 143s for session in self.sess_api.list().json(): 143s > self.sess_api.delete(session['id']) 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 143s return self._req('DELETE', id) 143s ^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/52fc245f-f080-4bf5-bf2c-37ecd3e7476e 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-3a5a6cfa-4ae9-4504-81c0-9dd5b009c2b1.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53517 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39197 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3a5a6cfa-4ae9-4504-81c0-9dd5b009c2b1, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.210000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.570000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 08f1f586-9477-4f45-a031-d553ae265e31 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 08f1f586-9477-4f45-a031-d553ae265e31 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a71160a8-ceff-4ffa-9d9d-b9a28a93dfcf (::1) 1.050000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a5a6cfa-4ae9-4504-81c0-9dd5b009c2b1 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a5a6cfa-4ae9-4504-81c0-9dd5b009c2b1 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/52fc245f-f080-4bf5-bf2c-37ecd3e7476e (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/52fc245f-f080-4bf5-bf2c-37ecd3e7476e', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/52fc245f-f080-4bf5-bf2c-37ecd3e7476e (::1) 6.970000ms referer=None 143s --------------------------- Captured stderr teardown --------------------------- 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 143s from pathlib import Path 143s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 143s from ._local import * 143s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 143s import warnings 143s File "", line 1360, in _find_and_load 143s File "", line 1322, in _find_and_load_unlocked 143s File "", line 1262, in _find_spec 143s File "", line 1556, in find_spec 143s File "", line 1530, in _get_spec 143s File "", line 1629, in find_spec 143s File "", line 152, in _path_stat 143s KeyboardInterrupt 143s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 143s 143s self = 143s 143s def test_create_with_kernel_id(self): 143s # create a new kernel 143s r = self.request('POST', 'api/kernels') 143s r.raise_for_status() 143s kernel = r.json() 143s 143s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 143s self.assertEqual(resp.status_code, 201) 143s newsession = resp.json() 143s self.assertIn('id', newsession) 143s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 143s self.assertEqual(newsession['kernel']['id'], kernel['id']) 143s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 143s 143s sessions = self.sess_api.list().json() 143s > self.assertEqual(sessions, [newsession]) 143s E AssertionError: Lists differ: [{'id': '52fc245f-f080-4bf5-bf2c-37ecd3e7476e', 'p[553 chars]ne}}] != [{'id': '65dd1dc0-2ea1-4260-8b36-4c181c31bbc4', 'p[279 chars]ne}}] 143s E 143s E First differing element 0: 143s E {'id': '52fc245f-f080-4bf5-bf2c-37ecd3e7476e', 'p[218 chars]: 0}} 143s E {'id': '65dd1dc0-2ea1-4260-8b36-4c181c31bbc4', 'p[278 chars]one}} 143s E 143s E First list contains 1 additional elements. 143s E First extra element 1: 143s E {'id': '65dd1dc0-2ea1-4260-8b36-4c181c31bbc4', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '68ecf101-23c8-4b2d-beaf-c22bc91c05cc', 'name': 'python3', 'last_activity': '2026-01-30T05:45:12.907512Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 143s E 143s E Diff is 830 characters long. Set self.maxDiff to None to see it. 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 143s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-68ecf101-23c8-4b2d-beaf-c22bc91c05cc.json'] 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52137 143s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55145 143s INFO NotebookApp:kernelmanager.py:179 Kernel started: 68ecf101-23c8-4b2d-beaf-c22bc91c05cc, name: python3 143s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.370000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.720000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.300000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.820000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a5a6cfa-4ae9-4504-81c0-9dd5b009c2b1 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a5a6cfa-4ae9-4504-81c0-9dd5b009c2b1 143s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/52fc245f-f080-4bf5-bf2c-37ecd3e7476e (::1) 2.520000ms 143s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 143s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 68ecf101-23c8-4b2d-beaf-c22bc91c05cc 143s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 68ecf101-23c8-4b2d-beaf-c22bc91c05cc 143s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/65dd1dc0-2ea1-4260-8b36-4c181c31bbc4 (::1) 143s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/65dd1dc0-2ea1-4260-8b36-4c181c31bbc4', version='HTTP/1.1', remote_ip='::1') 143s Traceback (most recent call last): 143s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 143s result = await result 143s ^^^^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 143s future.result() 143s ~~~~~~~~~~~~~^^ 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 143s yield maybe_future(sm.delete_session(session_id)) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 143s yielded = self.gen.throw(exc) 143s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 143s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 143s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 143s value = future.result() 143s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 143s raise self._exception.with_traceback(self._exception_tb) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 143s result = coro.send(None) 143s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 143s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 143s raise km.ready.exception() # type: ignore[misc] 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 143s await kernel_awaitable 143s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 143s result = await obj 143s ^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 143s raise e 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 143s out = await method(self, *args, **kwargs) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 143s await self._async_finish_shutdown(restart=restart) 143s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 143s await asyncio.wait_for( 143s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 143s ) 143s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 143s async with timeouts.timeout(timeout): 143s ~~~~~~~~~~~~~~~~^^^^^^^^^ 143s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 143s raise RuntimeError("Timeout should be used inside a task") 143s RuntimeError: Timeout should be used inside a task 143s WARNING NotebookApp:handlers.py:612 Unhandled error 143s ERROR NotebookApp:log.py:55 { 143s "Host": "localhost:12341", 143s "Accept": "*/*", 143s "User-Agent": "python-requests/2.32.5" 143s } 143s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/65dd1dc0-2ea1-4260-8b36-4c181c31bbc4 (::1) 6.460000ms referer=None 143s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 143s 143s self = 143s 143s def test_modify_kernel_id(self): 143s before = self.sess_api.create('foo/nb1.ipynb').json() 143s sid = before['id'] 143s 143s # create a new kernel 143s r = self.request('POST', 'api/kernels') 143s r.raise_for_status() 143s kernel = r.json() 143s 143s # Attach our session to the existing kernel 143s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 143s return self._req('PATCH', id, body) 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 143s response.raise_for_status() 143s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 143s 143s self = 143s 143s def raise_for_status(self): 143s """Raises :class:`HTTPError`, if one occurred.""" 143s 143s http_error_msg = "" 143s if isinstance(self.reason, bytes): 143s # We attempt to decode utf-8 first because some servers 143s # choose to localize their reason strings. If the string 143s # isn't utf-8, we fall back to iso-8859-1 for all other 143s # encodings. (See PR #3538) 143s try: 143s reason = self.reason.decode("utf-8") 143s except UnicodeDecodeError: 143s reason = self.reason.decode("iso-8859-1") 143s else: 143s reason = self.reason 143s 143s if 400 <= self.status_code < 500: 143s http_error_msg = ( 143s f"{self.status_code} Client Error: {reason} for url: {self.url}" 143s ) 143s 143s elif 500 <= self.status_code < 600: 143s http_error_msg = ( 143s f"{self.status_code} Server Error: {reason} for url: {self.url}" 143s ) 143s 143s if http_error_msg: 143s > raise HTTPError(http_error_msg, response=self) 143s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 143s 143s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 143s ----------------------------- Captured stderr call ----------------------------- 143s Traceback (most recent call last): 143s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 143s return _run_code(code, main_globals, None, 143s "__main__", mod_spec) 143s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 143s exec(code, run_globals) 143s ~~~~^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 143s from ipykernel import kernelapp as app 143s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 143s from .connect import * # noqa: F403 143s ^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 143s import jupyter_client 143s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 143s from .asynchronous import AsyncKernelClient 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 143s from .client import AsyncKernelClient # noqa 143s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 143s import zmq.asyncio 143s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 52, in 143s from zmq import backend 143s File "/usr/lib/python3/dist-packages/zmq/backend/__init__.py", line 25, in 143s _ns = select_backend(first) 143s File "/usr/lib/python3/dist-packages/zmq/backend/select.py", line 31, in select_backend 143s mod = import_module(name) 143s File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module 143s return _bootstrap._gcd_import(name[level:], package, level) 143s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 143s File "/usr/lib/python3/dist-packages/zmq/backend/cython/__init__.py", line 6, in 143s from . import _zmq 143s File "", line 645, in parent 143s KeyboardInterrupt 143s Traceback (most recent call last): 143s ------------------------------ Captured log call ------------------------------- 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 144s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e.json'] 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50503 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45119 144s INFO NotebookApp:kernelmanager.py:179 Kernel started: a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e, name: python3 144s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 144s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.430000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 144s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-05e02b9c-1501-4cc1-a582-e11478a20377.json'] 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42523 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42575 144s INFO NotebookApp:kernelmanager.py:179 Kernel started: 05e02b9c-1501-4cc1-a582-e11478a20377, name: python3 144s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 144s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.130000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e 144s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 144s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046', version='HTTP/1.1', remote_ip='::1') 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 144s result = await result 144s ^^^^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 144s future.result() 144s ~~~~~~~~~~~~~^^ 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 144s yielded = self.gen.throw(exc) 144s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 144s yield maybe_future( 144s km.shutdown_kernel(before['kernel']['id']) 144s ) 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 144s value = future.result() 144s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 144s raise self._exception.with_traceback(self._exception_tb) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 144s result = coro.send(None) 144s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 144s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 144s raise km.ready.exception() # type: ignore[misc] 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s WARNING NotebookApp:handlers.py:612 Unhandled error 144s ERROR NotebookApp:log.py:55 { 144s "Host": "localhost:12341", 144s "Accept": "*/*", 144s "User-Agent": "python-requests/2.32.5" 144s } 144s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 15.930000ms referer=None 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.000000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05e02b9c-1501-4cc1-a582-e11478a20377 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05e02b9c-1501-4cc1-a582-e11478a20377 144s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 144s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046', version='HTTP/1.1', remote_ip='::1') 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 144s result = await result 144s ^^^^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 144s future.result() 144s ~~~~~~~~~~~~~^^ 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 144s yielded = self.gen.throw(exc) 144s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 144s yield maybe_future(sm.delete_session(session_id)) 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 144s value = future.result() 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 144s yielded = self.gen.throw(exc) 144s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 144s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 144s value = future.result() 144s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 144s raise self._exception.with_traceback(self._exception_tb) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 144s result = coro.send(None) 144s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 144s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 144s raise km.ready.exception() # type: ignore[misc] 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s WARNING NotebookApp:handlers.py:612 Unhandled error 144s ERROR NotebookApp:log.py:55 { 144s "Host": "localhost:12341", 144s "Accept": "*/*", 144s "User-Agent": "python-requests/2.32.5" 144s } 144s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 6.970000ms referer=None 144s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 144s 144s self = 144s 144s def test_modify_kernel_name(self): 144s before = self.sess_api.create('foo/nb1.ipynb').json() 144s sid = before['id'] 144s 144s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 144s self.assertEqual(after['id'], sid) 144s self.assertEqual(after['path'], before['path']) 144s self.assertEqual(after['type'], before['type']) 144s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 144s 144s # check kernel list, to be sure previous kernel was cleaned up 144s r = self.request('GET', 'api/kernels') 144s r.raise_for_status() 144s kernel_list = r.json() 144s after['kernel'].pop('last_activity') 144s [ k.pop('last_activity') for k in kernel_list ] 144s > self.assertEqual(kernel_list, [after['kernel']]) 144s E AssertionError: Lists differ: [{'id': 'a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e', 'n[177 chars]: 0}] != [{'id': '0792ca0f-e1cd-4a35-816b-62d7e9cd3e15', 'n[61 chars]: 0}] 144s E 144s E First differing element 0: 144s E {'id': 'a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e', 'n[60 chars]': 0} 144s E {'id': '0792ca0f-e1cd-4a35-816b-62d7e9cd3e15', 'n[60 chars]': 0} 144s E 144s E First list contains 1 additional elements. 144s E First extra element 1: 144s E {'id': '0792ca0f-e1cd-4a35-816b-62d7e9cd3e15', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 144s E 144s E [{'connections': 0, 144s E - 'execution_state': 'starting', 144s E - 'id': 'a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e', 144s E - 'name': 'python3'}, 144s E - {'connections': 0, 144s E 'execution_state': 'starting', 144s E 'id': '0792ca0f-e1cd-4a35-816b-62d7e9cd3e15', 144s E 'name': 'python3'}] 144s 144s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 144s ------------------------------ Captured log call ------------------------------- 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.110000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 144s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-0792ca0f-e1cd-4a35-816b-62d7e9cd3e15.json'] 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51807 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36951 144s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0792ca0f-e1cd-4a35-816b-62d7e9cd3e15, name: python3 144s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 144s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 05e02b9c-1501-4cc1-a582-e11478a20377 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05e02b9c-1501-4cc1-a582-e11478a20377 144s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 18.610000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.910000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0792ca0f-e1cd-4a35-816b-62d7e9cd3e15 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0792ca0f-e1cd-4a35-816b-62d7e9cd3e15 144s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046 (::1) 144s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/72970ef8-84da-492e-9413-1b8499879046', version='HTTP/1.1', remote_ip='::1') 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 144s result = await result 144s ^^^^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 144s future.result() 144s ~~~~~~~~~~~~~^^ 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 144s yielded = self.gen.throw(exc) 144s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 144s yield maybe_future(sm.delete_session(session_id)) 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 144s value = future.result() 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 144s yielded = self.gen.throw(exc) 144s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 144s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 144s value = future.result() 144s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 144s raise self._exception.with_traceback(self._exception_tb) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 144s result = coro.send(None) 144s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 144s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 144s raise km.ready.exception() # type: ignore[misc] 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s WARNING NotebookApp:handlers.py:612 Unhandled error 144s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 144s 144s @self.addCleanup 144s def cleanup_sessions(): 144s for session in self.sess_api.list().json(): 144s > self.sess_api.delete(session['id']) 144s 144s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 144s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 144s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 144s return self._req('DELETE', id) 144s ^^^^^^^^^^^^^^^^^^^^^^^ 144s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 144s response.raise_for_status() 144s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 144s 144s self = 144s 144s def raise_for_status(self): 144s """Raises :class:`HTTPError`, if one occurred.""" 144s 144s http_error_msg = "" 144s if isinstance(self.reason, bytes): 144s # We attempt to decode utf-8 first because some servers 144s # choose to localize their reason strings. If the string 144s # isn't utf-8, we fall back to iso-8859-1 for all other 144s # encodings. (See PR #3538) 144s try: 144s reason = self.reason.decode("utf-8") 144s except UnicodeDecodeError: 144s reason = self.reason.decode("iso-8859-1") 144s else: 144s reason = self.reason 144s 144s if 400 <= self.status_code < 500: 144s http_error_msg = ( 144s f"{self.status_code} Client Error: {reason} for url: {self.url}" 144s ) 144s 144s elif 500 <= self.status_code < 600: 144s http_error_msg = ( 144s f"{self.status_code} Server Error: {reason} for url: {self.url}" 144s ) 144s 144s if http_error_msg: 144s > raise HTTPError(http_error_msg, response=self) 144s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b1529d04-412f-4086-adde-24b4f7a8b14c 144s 144s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 144s ------------------------------ Captured log call ------------------------------- 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 144s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-5f8666ed-14e8-4739-ba89-2d44bfcec9b0.json'] 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41297 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42709 144s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5f8666ed-14e8-4739-ba89-2d44bfcec9b0, name: python3 144s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 144s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.930000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 144s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b1529d04-412f-4086-adde-24b4f7a8b14c (::1) 2.820000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.350000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5f8666ed-14e8-4739-ba89-2d44bfcec9b0 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5f8666ed-14e8-4739-ba89-2d44bfcec9b0 144s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b1529d04-412f-4086-adde-24b4f7a8b14c (::1) 144s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b1529d04-412f-4086-adde-24b4f7a8b14c', version='HTTP/1.1', remote_ip='::1') 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 144s result = await result 144s ^^^^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 144s future.result() 144s ~~~~~~~~~~~~~^^ 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 144s yielded = self.gen.throw(exc) 144s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 144s yield maybe_future(sm.delete_session(session_id)) 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 144s value = future.result() 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 144s yielded = self.gen.throw(exc) 144s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 144s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 144s value = future.result() 144s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 144s raise self._exception.with_traceback(self._exception_tb) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 144s result = coro.send(None) 144s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 144s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 144s raise km.ready.exception() # type: ignore[misc] 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s WARNING NotebookApp:handlers.py:612 Unhandled error 144s ERROR NotebookApp:log.py:55 { 144s "Host": "localhost:12341", 144s "Accept": "*/*", 144s "User-Agent": "python-requests/2.32.5" 144s } 144s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b1529d04-412f-4086-adde-24b4f7a8b14c (::1) 6.630000ms referer=None 144s --------------------------- Captured stderr teardown --------------------------- 144s Traceback (most recent call last): 144s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 144s return _run_code(code, main_globals, None, 144s "__main__", mod_spec) 144s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 144s exec(code, run_globals) 144s ~~~~^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 144s from pathlib import Path 144s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 144s from ._abc import * 144s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 144s from glob import _Globber, _no_recurse_symlinks 144s File "/usr/lib/python3.13/glob.py", line 5, in 144s import re 144s File "/usr/lib/python3.13/re/__init__.py", line 125, in 144s import enum 144s File "", line 1357, in _find_and_load 144s File "", line 421, in __exit__ 144s File "", line 378, in release 144s KeyboardInterrupt 144s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 144s 144s @self.addCleanup 144s def cleanup_sessions(): 144s for session in self.sess_api.list().json(): 144s > self.sess_api.delete(session['id']) 144s 144s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 144s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 144s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 144s return self._req('DELETE', id) 144s ^^^^^^^^^^^^^^^^^^^^^^^ 144s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 144s response.raise_for_status() 144s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 144s 144s self = 144s 144s def raise_for_status(self): 144s """Raises :class:`HTTPError`, if one occurred.""" 144s 144s http_error_msg = "" 144s if isinstance(self.reason, bytes): 144s # We attempt to decode utf-8 first because some servers 144s # choose to localize their reason strings. If the string 144s # isn't utf-8, we fall back to iso-8859-1 for all other 144s # encodings. (See PR #3538) 144s try: 144s reason = self.reason.decode("utf-8") 144s except UnicodeDecodeError: 144s reason = self.reason.decode("iso-8859-1") 144s else: 144s reason = self.reason 144s 144s if 400 <= self.status_code < 500: 144s http_error_msg = ( 144s f"{self.status_code} Client Error: {reason} for url: {self.url}" 144s ) 144s 144s elif 500 <= self.status_code < 600: 144s http_error_msg = ( 144s f"{self.status_code} Server Error: {reason} for url: {self.url}" 144s ) 144s 144s if http_error_msg: 144s > raise HTTPError(http_error_msg, response=self) 144s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/d8f2948c-914a-41f4-9ea3-46d8baed0953 144s 144s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 144s ----------------------------- Captured stderr call ----------------------------- 144s Traceback (most recent call last): 144s ------------------------------ Captured log call ------------------------------- 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 144s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbks6_v8w/runtime/kernel-1c6b7a95-72fe-4c70-b5bc-b30804561c53.json'] 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45873 144s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36371 144s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1c6b7a95-72fe-4c70-b5bc-b30804561c53, name: python3 144s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbks6_v8w/notebooks/foo'} 144s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.510000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/d8f2948c-914a-41f4-9ea3-46d8baed0953 (::1) 2.570000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5f8666ed-14e8-4739-ba89-2d44bfcec9b0 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5f8666ed-14e8-4739-ba89-2d44bfcec9b0 144s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b1529d04-412f-4086-adde-24b4f7a8b14c (::1) 0.930000ms 144s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 144s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c6b7a95-72fe-4c70-b5bc-b30804561c53 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c6b7a95-72fe-4c70-b5bc-b30804561c53 144s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/d8f2948c-914a-41f4-9ea3-46d8baed0953 (::1) 144s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/d8f2948c-914a-41f4-9ea3-46d8baed0953', version='HTTP/1.1', remote_ip='::1') 144s Traceback (most recent call last): 144s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 144s result = await result 144s ^^^^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 144s future.result() 144s ~~~~~~~~~~~~~^^ 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 144s yielded = self.gen.throw(exc) 144s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 144s yield maybe_future(sm.delete_session(session_id)) 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 144s value = future.result() 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 144s yielded = self.gen.throw(exc) 144s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 144s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 144s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 144s value = future.result() 144s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 144s raise self._exception.with_traceback(self._exception_tb) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 144s result = coro.send(None) 144s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 144s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 144s raise km.ready.exception() # type: ignore[misc] 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 144s await kernel_awaitable 144s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 144s result = await obj 144s ^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 144s raise e 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 144s out = await method(self, *args, **kwargs) 144s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 144s await self._async_finish_shutdown(restart=restart) 144s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 144s await asyncio.wait_for( 144s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 144s ) 144s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 144s async with timeouts.timeout(timeout): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^ 144s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 144s raise RuntimeError("Timeout should be used inside a task") 144s RuntimeError: Timeout should be used inside a task 144s WARNING NotebookApp:handlers.py:612 Unhandled error 144s ERROR NotebookApp:log.py:55 { 144s "Host": "localhost:12341", 144s "Accept": "*/*", 144s "User-Agent": "python-requests/2.32.5" 144s } 144s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/d8f2948c-914a-41f4-9ea3-46d8baed0953 (::1) 6.580000ms referer=None 144s --------------------------- Captured stderr teardown --------------------------- 144s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 144s return _run_code(code, main_globals, None, 144s "__main__", mod_spec) 144s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 144s exec(code, run_globals) 144s ~~~~^^^^^^^^^^^^^^^^^^^ 144s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 144s from pathlib import Path 144s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 144s from ._local import * 144s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 144s import warnings 144s File "", line 1360, in _find_and_load 144s File "", line 1331, in _find_and_load_unlocked 144s File "", line 935, in _load_unlocked 144s File "", line 1019, in exec_module 144s File "", line 1152, in get_code 144s File "", line 781, in _compile_bytecode 144s KeyboardInterrupt 144s ---------------------------- Captured log teardown ----------------------------- 144s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a5a6cfa-4ae9-4504-81c0-9dd5b009c2b1 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 87a9f869-f3f8-4a79-bbc3-867407fd5af3 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e4da6d-53c8-4a80-a5d7-5343c0cc4b3e 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 66d7a03a-a98c-4bbf-8ee0-e71a7fc4657c 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 08f1f586-9477-4f45-a031-d553ae265e31 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 68ecf101-23c8-4b2d-beaf-c22bc91c05cc 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5f8666ed-14e8-4739-ba89-2d44bfcec9b0 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0792ca0f-e1cd-4a35-816b-62d7e9cd3e15 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c6b7a95-72fe-4c70-b5bc-b30804561c53 144s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 05e02b9c-1501-4cc1-a582-e11478a20377 144s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 144s =============================== warnings summary =============================== 144s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 144s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 144s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 144s return LooseVersion(v) >= LooseVersion(check) 144s 144s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 144s auth/tests/test_login.py: 2 warnings 144s bundler/tests/test_bundler_api.py: 2 warnings 144s services/api/tests/test_api.py: 4 warnings 144s services/config/tests/test_config_api.py: 7 warnings 144s services/contents/tests/test_contents_api.py: 318 warnings 144s services/kernels/tests/test_kernels_api.py: 113 warnings 144s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 144s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 144s services/sessions/tests/test_sessionmanager.py: 9 warnings 144s services/sessions/tests/test_sessions_api.py: 128 warnings 144s terminal/tests/test_terminals_api.py: 50 warnings 144s tests/test_files.py: 2 warnings 144s tests/test_gateway.py: 21 warnings 144s tests/test_notebookapp.py: 8 warnings 144s tests/test_paths.py: 2 warnings 144s tree/tests/test_tree_handler.py: 2 warnings 144s /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). 144s dt = unaware(*args, **kwargs) 144s 144s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 144s /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 144s pytestmark = pytest.mark.integration_tests 144s 144s auth/tests/test_login.py: 3 warnings 144s bundler/tests/test_bundler_api.py: 3 warnings 144s services/api/tests/test_api.py: 3 warnings 144s services/config/tests/test_config_api.py: 3 warnings 144s services/contents/tests/test_contents_api.py: 6 warnings 144s services/kernels/tests/test_kernels_api.py: 12 warnings 144s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 144s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 144s services/sessions/tests/test_sessions_api.py: 6 warnings 144s terminal/tests/test_terminals_api.py: 6 warnings 144s tests/test_files.py: 3 warnings 144s tests/test_gateway.py: 3 warnings 144s tests/test_notebookapp.py: 11 warnings 144s tests/test_paths.py: 3 warnings 144s tree/tests/test_tree_handler.py: 3 warnings 144s /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 144s policy = events.get_event_loop_policy() 144s 144s auth/tests/test_login.py: 9 warnings 144s bundler/tests/test_bundler_api.py: 9 warnings 144s services/api/tests/test_api.py: 9 warnings 144s services/config/tests/test_config_api.py: 9 warnings 144s services/contents/tests/test_contents_api.py: 18 warnings 144s services/kernels/tests/test_kernels_api.py: 47 warnings 144s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 144s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 144s services/sessions/tests/test_sessionmanager.py: 18 warnings 144s services/sessions/tests/test_sessions_api.py: 19 warnings 144s terminal/tests/test_terminals_api.py: 18 warnings 144s tests/test_files.py: 9 warnings 144s tests/test_gateway.py: 9 warnings 144s tests/test_notebookapp.py: 28 warnings 144s tests/test_paths.py: 9 warnings 144s tree/tests/test_tree_handler.py: 9 warnings 144s /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 144s loop = events.get_event_loop_policy().get_event_loop() 144s 144s bundler/tests/test_bundler_api.py: 6 warnings 144s services/api/tests/test_api.py: 6 warnings 144s services/contents/tests/test_contents_api.py: 806 warnings 144s services/contents/tests/test_largefilemanager.py: 42 warnings 144s services/contents/tests/test_manager.py: 526 warnings 144s tests/test_files.py: 8 warnings 144s tree/tests/test_tree_handler.py: 6 warnings 144s /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). 144s dt = unaware(*args, **kwargs) 144s 144s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 144s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 144s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 144s loop.make_current() 144s 144s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 144s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 144s /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/tmpsi83ntn4/data/kernels/sample 2 144s d = self.find_kernel_specs() 144s 144s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 144s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 144s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 144s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 144s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 144s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 144s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 144s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 144s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=3442) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 144s pid, fd = os.forkpty() 144s 144s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 144s /usr/lib/python3/dist-packages/terminado/management.py:193: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 144s def make_term_env( 144s Enable tracemalloc to get traceback where the object was allocated. 144s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 144s 144s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 144s /usr/lib/python3/dist-packages/tornado/escape.py:245: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 144s def to_unicode(value: Union[None, str, bytes]) -> Optional[str]: 144s Enable tracemalloc to get traceback where the object was allocated. 144s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 144s 144s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 144s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 144s /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). 144s dt = datetime.utcnow().isoformat() + 'Z' 144s 144s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 144s =========================== short test summary info ============================ 144s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 144s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 144s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 144s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 144s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 144s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 144s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 144s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 144s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 144s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 144s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 144s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 144s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 144s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 144s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 144s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 144s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 144s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 144s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 144s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 144s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 144s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 144s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 144s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 144s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 144s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 144s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 144s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 144s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 144s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 144s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 144s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 144s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 144s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 144s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 144s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 144s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 144s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 144s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 144s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 144s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 144s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 144s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 144s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 144s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 144s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 144s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 144s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 144s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 144s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2407 warnings, 8 errors in 30.24s = 145s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 145s *** 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 148s ============================= test session starts ============================== 148s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 148s rootdir: /tmp/autopkgtest.CeZch0/autopkgtest_tmp 148s plugins: typeguard-4.4.4 148s collected 330 items / 303 deselected / 27 selected 148s run-last-failure: rerun previous 27 failures 148s 149s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 151s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 151s 151s ==================================== ERRORS ==================================== 151s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 151s 151s self = 151s 151s def tearDown(self): 151s for k in self.kern_api.list().json(): 151s > self.kern_api.shutdown(k['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/43bfe198-8635-4741-b3fc-a59a2977a8c9 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 151s import functools 151s File "/usr/lib/python3.13/functools.py", line 18, in 151s from collections import namedtuple 151s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 151s from operator import eq as _eq 151s File "/usr/lib/python3.13/operator.py", line 414, in 151s from _operator import * 151s File "", line 1360, in _find_and_load 151s File "", line 1322, in _find_and_load_unlocked 151s File "", line 1262, in _find_spec 151s File "", line 984, in find_spec 151s KeyboardInterrupt 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk697de35/runtime/kernel-43bfe198-8635-4741-b3fc-a59a2977a8c9.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57151 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34483 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 43bfe198-8635-4741-b3fc-a59a2977a8c9, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.000000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk697de35/runtime/kernel-ac22e4a3-f6c2-4227-8050-aa0b5b710041.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42347 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49027 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: ac22e4a3-f6c2-4227-8050-aa0b5b710041, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.490000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ac22e4a3-f6c2-4227-8050-aa0b5b710041 151s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ac22e4a3-f6c2-4227-8050-aa0b5b710041/interrupt (::1) 3.240000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 151s yield maybe_future(km.restart_kernel(kernel_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 151s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 151s await ensure_async(kernel.restart_kernel(now=now)) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 151s await self._async_shutdown_kernel(now=now, restart=True) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ac22e4a3-f6c2-4227-8050-aa0b5b710041/restart (::1) 7.460000ms referer=None 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 43bfe198-8635-4741-b3fc-a59a2977a8c9 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43bfe198-8635-4741-b3fc-a59a2977a8c9 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/43bfe198-8635-4741-b3fc-a59a2977a8c9 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/43bfe198-8635-4741-b3fc-a59a2977a8c9', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 151s yielded = ctx_run(next, result) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 151s yield maybe_future(km.shutdown_kernel(kernel_id)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/43bfe198-8635-4741-b3fc-a59a2977a8c9 (::1) 7.400000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 151s from ipykernel import kernelapp as app 151s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 151s from .connect import * # noqa: F403 151s ^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 151s import jupyter_client 151s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 151s from .asynchronous import AsyncKernelClient 151s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 151s from .client import AsyncKernelClient # noqa 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 151s import zmq.asyncio 151s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 151s import asyncio 151s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 151s from .base_events import * 151s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 151s import ssl 151s File "/usr/lib/python3.13/ssl.py", line 100, in 151s import _ssl # if we can't import it, let the error propagate 151s ^^^^^^^^^^^ 151s KeyboardInterrupt 151s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 151s 151s self = 151s 151s def tearDown(self): 151s for k in self.kern_api.list().json(): 151s > self.kern_api.shutdown(k['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/1af2b418-52b6-43e8-a11d-e310f19f16fd 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 151s import functools 151s File "", line 1360, in _find_and_load 151s File "", line 1331, in _find_and_load_unlocked 151s File "", line 935, in _load_unlocked 151s File "", line 1019, in exec_module 151s File "", line 1152, in get_code 151s File "", line 781, in _compile_bytecode 151s KeyboardInterrupt 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprmszl4sw/runtime/kernel-1af2b418-52b6-43e8-a11d-e310f19f16fd.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56231 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58697 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1af2b418-52b6-43e8-a11d-e310f19f16fd, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.230000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprmszl4sw/runtime/kernel-0b8381ce-2364-4107-b8f2-ece32fa697b8.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38795 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35815 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b8381ce-2364-4107-b8f2-ece32fa697b8, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.820000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 0b8381ce-2364-4107-b8f2-ece32fa697b8 151s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/0b8381ce-2364-4107-b8f2-ece32fa697b8/interrupt (::1) 1.010000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 151s yield maybe_future(km.restart_kernel(kernel_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 151s result = coro.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 151s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 151s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 151s yield self # This tells Task to wait for completion. 151s ^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 151s await ensure_async(kernel.restart_kernel(now=now)) 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 151s await self._async_shutdown_kernel(now=now, restart=True) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/0b8381ce-2364-4107-b8f2-ece32fa697b8/restart (::1) 7.950000ms referer=None 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.390000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1af2b418-52b6-43e8-a11d-e310f19f16fd 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1af2b418-52b6-43e8-a11d-e310f19f16fd 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1af2b418-52b6-43e8-a11d-e310f19f16fd (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1af2b418-52b6-43e8-a11d-e310f19f16fd', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 151s yield maybe_future(km.shutdown_kernel(kernel_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1af2b418-52b6-43e8-a11d-e310f19f16fd (::1) 6.500000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 151s from ipykernel import kernelapp as app 151s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 151s from .connect import * # noqa: F403 151s ^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 151s import jupyter_client 151s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 151s from .asynchronous import AsyncKernelClient 151s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 151s from .client import AsyncKernelClient # noqa 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 151s import zmq.asyncio 151s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 151s import asyncio 151s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 151s from .base_events import * 151s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 151s import ssl 151s File "/usr/lib/python3.13/ssl.py", line 100, in 151s import _ssl # if we can't import it, let the error propagate 151s ^^^^^^^^^^^ 151s File "", line 1360, in _find_and_load 151s File "", line 1331, in _find_and_load_unlocked 151s File "", line 935, in _load_unlocked 151s File "", line 1326, in exec_module 151s File "", line 491, in _verbose_message 151s KeyboardInterrupt 151s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpms1hrd8n/runtime/kernel-f458e6ba-ef0f-43ef-bde2-db0cde68425e.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55531 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44583 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: f458e6ba-ef0f-43ef-bde2-db0cde68425e, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.120000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.370000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.360000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.840000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ecda9d27-330c-4424-9299-65b127b76f05 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ecda9d27-330c-4424-9299-65b127b76f05 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8043fb22-4ccc-4427-9c3c-835986215354 (::1) 3.310000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f458e6ba-ef0f-43ef-bde2-db0cde68425e 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f458e6ba-ef0f-43ef-bde2-db0cde68425e 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 151s yielded = self.gen.send(value) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 8.430000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 151s from ipykernel import kernelapp as app 151s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 151s from .connect import * # noqa: F403 151s ^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 151s from subprocess import PIPE, Popen 151s File "/usr/lib/python3.13/subprocess.py", line 46, in 151s import locale 151s File "", line 1360, in _find_and_load 151s File "", line 1331, in _find_and_load_unlocked 151s File "", line 935, in _load_unlocked 151s File "", line 1019, in exec_module 151s File "", line 1152, in get_code 151s File "", line 781, in _compile_bytecode 151s KeyboardInterrupt 151s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjs99dywb/runtime/kernel-6015ee95-2fb9-4030-bae4-114de3327156.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33161 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50391 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6015ee95-2fb9-4030-bae4-114de3327156, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.790000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.680000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.350000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for deeeb3fe-10aa-46b3-b852-75e5bde543ed 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: deeeb3fe-10aa-46b3-b852-75e5bde543ed 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ebb93282-d7c3-4f27-ac95-b37ab04a9b46 (::1) 0.870000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6015ee95-2fb9-4030-bae4-114de3327156 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6015ee95-2fb9-4030-bae4-114de3327156 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde (::1) 6.460000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 151s from ipykernel import kernelapp as app 151s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 151s from .connect import * # noqa: F403 151s ^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 151s from subprocess import PIPE, Popen 151s File "", line 1360, in _find_and_load 151s File "", line 1331, in _find_and_load_unlocked 151s File "", line 935, in _load_unlocked 151s File "", line 1019, in exec_module 151s File "", line 1152, in get_code 151s File "", line 781, in _compile_bytecode 151s KeyboardInterrupt 151s =================================== FAILURES =================================== 151s ______________________ KernelAPITest.test_default_kernel _______________________ 151s 151s self = 151s 151s def tearDown(self): 151s for k in self.kern_api.list().json(): 151s > self.kern_api.shutdown(k['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8f0c168d-b833-4bc0-a870-c2f1d1052356 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log setup ------------------------------ 151s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpk697de35/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpk697de35/etc/jupyter'] for config files 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpk697de35/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpk697de35/config 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpk697de35/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpk697de35/config 151s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpk697de35/notebooks 151s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 151s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 151s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 151s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 151s WARNING NotebookApp:handlers.py:612 Forbidden 151s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.960000ms referer=None 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk697de35/runtime/kernel-8f0c168d-b833-4bc0-a870-c2f1d1052356.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44415 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52349 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8f0c168d-b833-4bc0-a870-c2f1d1052356, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 50.090000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.000000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f0c168d-b833-4bc0-a870-c2f1d1052356 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f0c168d-b833-4bc0-a870-c2f1d1052356 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8f0c168d-b833-4bc0-a870-c2f1d1052356 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8f0c168d-b833-4bc0-a870-c2f1d1052356', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 151s yielded = ctx_run(next, result) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 151s yield maybe_future(km.shutdown_kernel(kernel_id)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8f0c168d-b833-4bc0-a870-c2f1d1052356 (::1) 8.570000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 151s import functools 151s File "/usr/lib/python3.13/functools.py", line 455, in 151s _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) 151s File "/usr/lib/python3.13/collections/__init__.py", line 490, in namedtuple 151s method.__qualname__ = f'{typename}.{method.__name__}' 151s ^^^^^^^^^^^^^^^^^^^ 151s KeyboardInterrupt 151s ______________________ KernelAPITest.test_kernel_handler _______________________ 151s 151s self = 151s 151s def test_kernel_handler(self): 151s # GET kernel with given id 151s kid = self.kern_api.start().json()['id'] 151s r = self.kern_api.get(kid) 151s kern1 = r.json() 151s self.assertEqual(r.status_code, 200) 151s assert isinstance(kern1, dict) 151s self.assertIn('id', kern1) 151s self.assertEqual(kern1['id'], kid) 151s 151s # Request a bad kernel id and check that a JSON 151s # message is returned! 151s bad_id = '111-111-111-111-111' 151s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 151s self.kern_api.get(bad_id) 151s 151s # DELETE kernel with id 151s > r = self.kern_api.shutdown(kid) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/51643dca-8960-4ccc-b844-c7e636b7682f 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 126, in 151s from . import _compiler, _parser 151s File "/usr/lib/python3.13/re/_compiler.py", line 13, in 151s import _sre 151s KeyboardInterrupt 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk697de35/runtime/kernel-51643dca-8960-4ccc-b844-c7e636b7682f.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40863 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58057 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 51643dca-8960-4ccc-b844-c7e636b7682f, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.300000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/51643dca-8960-4ccc-b844-c7e636b7682f (::1) 2.370000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s 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 151s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 151s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.030000ms referer=None 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 51643dca-8960-4ccc-b844-c7e636b7682f 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 51643dca-8960-4ccc-b844-c7e636b7682f 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/51643dca-8960-4ccc-b844-c7e636b7682f (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/51643dca-8960-4ccc-b844-c7e636b7682f', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 151s yielded = ctx_run(next, result) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 151s yield maybe_future(km.shutdown_kernel(kernel_id)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/51643dca-8960-4ccc-b844-c7e636b7682f (::1) 8.240000ms referer=None 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8f0c168d-b833-4bc0-a870-c2f1d1052356 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8f0c168d-b833-4bc0-a870-c2f1d1052356 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8f0c168d-b833-4bc0-a870-c2f1d1052356 (::1) 2.710000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 51643dca-8960-4ccc-b844-c7e636b7682f 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 51643dca-8960-4ccc-b844-c7e636b7682f 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/51643dca-8960-4ccc-b844-c7e636b7682f (::1) 1.930000ms 151s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 151s 151s self = 151s 151s def test_main_kernel_handler(self): 151s # POST request 151s r = self.kern_api.start() 151s kern1 = r.json() 151s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 151s self.assertEqual(r.status_code, 201) 151s self.assertIsInstance(kern1, dict) 151s 151s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 151s expected_csp = '; '.join([ 151s "frame-ancestors 'self'", 151s 'report-uri ' + report_uri, 151s "default-src 'none'" 151s ]) 151s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 151s 151s # GET request 151s r = self.kern_api.list() 151s self.assertEqual(r.status_code, 200) 151s assert isinstance(r.json(), list) 151s self.assertEqual(r.json()[0]['id'], kern1['id']) 151s self.assertEqual(r.json()[0]['name'], kern1['name']) 151s 151s # create another kernel and check that they both are added to the 151s # list of kernels from a GET request 151s kern2 = self.kern_api.start().json() 151s assert isinstance(kern2, dict) 151s r = self.kern_api.list() 151s kernels = r.json() 151s self.assertEqual(r.status_code, 200) 151s assert isinstance(kernels, list) 151s self.assertEqual(len(kernels), 2) 151s 151s # Interrupt a kernel 151s r = self.kern_api.interrupt(kern2['id']) 151s self.assertEqual(r.status_code, 204) 151s 151s # Restart a kernel 151s > r = self.kern_api.restart(kern2['id']) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 151s return self._req('POST', url_path_join(id, 'restart')) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/ac22e4a3-f6c2-4227-8050-aa0b5b710041/restart 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 151s import functools 151s File "/usr/lib/python3.13/functools.py", line 18, in 151s from collections import namedtuple 151s File "/usr/lib/python3.13/collections/__init__.py", line 39, in 151s from operator import eq as _eq 151s File "/usr/lib/python3.13/operator.py", line 414, in 151s from _operator import * 151s File "", line 1360, in _find_and_load 151s File "", line 1322, in _find_and_load_unlocked 151s File "", line 1262, in _find_spec 151s File "", line 984, in find_spec 151s KeyboardInterrupt 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk697de35/runtime/kernel-43bfe198-8635-4741-b3fc-a59a2977a8c9.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57151 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34483 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 43bfe198-8635-4741-b3fc-a59a2977a8c9, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.000000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.780000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk697de35/runtime/kernel-ac22e4a3-f6c2-4227-8050-aa0b5b710041.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42347 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49027 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: ac22e4a3-f6c2-4227-8050-aa0b5b710041, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.490000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ac22e4a3-f6c2-4227-8050-aa0b5b710041 151s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ac22e4a3-f6c2-4227-8050-aa0b5b710041/interrupt (::1) 3.240000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 151s yield maybe_future(km.restart_kernel(kernel_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 151s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 151s await ensure_async(kernel.restart_kernel(now=now)) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 151s await self._async_shutdown_kernel(now=now, restart=True) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ac22e4a3-f6c2-4227-8050-aa0b5b710041/restart (::1) 7.460000ms referer=None 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 43bfe198-8635-4741-b3fc-a59a2977a8c9 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43bfe198-8635-4741-b3fc-a59a2977a8c9 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/43bfe198-8635-4741-b3fc-a59a2977a8c9 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/43bfe198-8635-4741-b3fc-a59a2977a8c9', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 151s yielded = ctx_run(next, result) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 151s yield maybe_future(km.shutdown_kernel(kernel_id)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/43bfe198-8635-4741-b3fc-a59a2977a8c9 (::1) 7.400000ms referer=None 151s ________________________ KernelAPITest.test_no_kernels _________________________ 151s 151s self = 151s 151s def test_no_kernels(self): 151s """Make sure there are no kernels running at the start""" 151s kernels = self.kern_api.list().json() 151s > self.assertEqual(kernels, []) 151s E AssertionError: Lists differ: [{'id': '43bfe198-8635-4741-b3fc-a59a2977a[281 chars]: 0}] != [] 151s E 151s E First list contains 2 additional elements. 151s E First extra element 0: 151s E {'id': '43bfe198-8635-4741-b3fc-a59a2977a8c9', 'name': 'python3', 'last_activity': '2026-01-30T05:45:28.322703Z', 'execution_state': 'starting', 'connections': 0} 151s E 151s E + [] 151s E - [{'connections': 0, 151s E - 'execution_state': 'starting', 151s E - 'id': '43bfe198-8635-4741-b3fc-a59a2977a8c9', 151s E - 'last_activity': '2026-01-30T05:45:28.322703Z', 151s E - 'name': 'python3'}, 151s E - {'connections': 0, 151s E - 'execution_state': 'starting', 151s E - 'id': 'ac22e4a3-f6c2-4227-8050-aa0b5b710041', 151s E - 'last_activity': '2026-01-30T05:45:28.345533Z', 151s E - 'name': 'python3'}] 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.170000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 43bfe198-8635-4741-b3fc-a59a2977a8c9 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 43bfe198-8635-4741-b3fc-a59a2977a8c9 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/43bfe198-8635-4741-b3fc-a59a2977a8c9 (::1) 1.050000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ac22e4a3-f6c2-4227-8050-aa0b5b710041 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ac22e4a3-f6c2-4227-8050-aa0b5b710041 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ac22e4a3-f6c2-4227-8050-aa0b5b710041 (::1) 1.040000ms 151s ---------------------------- Captured log teardown ----------------------------- 151s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 151s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 151s _____________________ AsyncKernelAPITest.test_connections ______________________ 151s 151s self = 151s 151s def tearDown(self): 151s for k in self.kern_api.list().json(): 151s > self.kern_api.shutdown(k['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log setup ------------------------------ 151s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmprmszl4sw/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmprmszl4sw/etc/jupyter'] for config files 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprmszl4sw/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmprmszl4sw/config 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprmszl4sw/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmprmszl4sw/config 151s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmprmszl4sw/notebooks 151s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 151s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 151s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 151s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 151s WARNING NotebookApp:handlers.py:612 Forbidden 151s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.700000ms referer=None 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprmszl4sw/runtime/kernel-ae51c257-a1a3-40fd-a898-7583446ebe50.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39953 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53761 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: ae51c257-a1a3-40fd-a898-7583446ebe50, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.980000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50 (::1) 2.440000ms 151s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50/channels 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 151s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60349 151s DEBUG NotebookApp:kernelmanager.py:423 activity on ae51c257-a1a3-40fd-a898-7583446ebe50: status (starting) 151s DEBUG NotebookApp:kernelmanager.py:423 activity on ae51c257-a1a3-40fd-a898-7583446ebe50: status (busy) 151s DEBUG NotebookApp:kernelmanager.py:423 activity on ae51c257-a1a3-40fd-a898-7583446ebe50: status (idle) 151s 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/'}]} 151s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel ae51c257-a1a3-40fd-a898-7583446ebe50) to 5.4 (client). 151s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50/channels (::1) 521.290000ms 151s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50/channels 151s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53761 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60349 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39953 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40319 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60349 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39953 151s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 151s Setting websocket_ping_timeout=30000 151s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50 (::1) 2.910000ms 151s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:kernelmanager.py:423 activity on ae51c257-a1a3-40fd-a898-7583446ebe50: status (busy) 151s DEBUG NotebookApp:kernelmanager.py:423 activity on ae51c257-a1a3-40fd-a898-7583446ebe50: status (busy) 151s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:kernelmanager.py:423 activity on ae51c257-a1a3-40fd-a898-7583446ebe50: status (idle) 151s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:kernelmanager.py:423 activity on ae51c257-a1a3-40fd-a898-7583446ebe50: status (idle) 151s DEBUG NotebookApp:handlers.py:579 Websocket closed ae51c257-a1a3-40fd-a898-7583446ebe50:bc712b75-4b26ae8303ef9fcd7e84526c 151s INFO NotebookApp:kernelmanager.py:222 Starting buffering for ae51c257-a1a3-40fd-a898-7583446ebe50:bc712b75-4b26ae8303ef9fcd7e84526c 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ae51c257-a1a3-40fd-a898-7583446ebe50:iopub 151s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ae51c257-a1a3-40fd-a898-7583446ebe50:iopub 151s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on ae51c257-a1a3-40fd-a898-7583446ebe50:iopub 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50 (::1) 0.830000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50 (::1) 0.730000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae51c257-a1a3-40fd-a898-7583446ebe50 151s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for ae51c257-a1a3-40fd-a898-7583446ebe50:bc712b75-4b26ae8303ef9fcd7e84526c 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae51c257-a1a3-40fd-a898-7583446ebe50 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 151s yield maybe_future(km.shutdown_kernel(kernel_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50 (::1) 7.530000ms referer=None 151s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 151s 151s self = 151s 151s def tearDown(self): 151s for k in self.kern_api.list().json(): 151s > self.kern_api.shutdown(k['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/efe4097a-bc3b-451e-9243-73cac3da3bd5 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprmszl4sw/runtime/kernel-efe4097a-bc3b-451e-9243-73cac3da3bd5.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54731 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34267 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: efe4097a-bc3b-451e-9243-73cac3da3bd5, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.640000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.930000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ae51c257-a1a3-40fd-a898-7583446ebe50 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae51c257-a1a3-40fd-a898-7583446ebe50 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ae51c257-a1a3-40fd-a898-7583446ebe50 (::1) 4.380000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for efe4097a-bc3b-451e-9243-73cac3da3bd5 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: efe4097a-bc3b-451e-9243-73cac3da3bd5 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/efe4097a-bc3b-451e-9243-73cac3da3bd5 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/efe4097a-bc3b-451e-9243-73cac3da3bd5', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 151s yield maybe_future(km.shutdown_kernel(kernel_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/efe4097a-bc3b-451e-9243-73cac3da3bd5 (::1) 14.200000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 151s import functools 151s File "/usr/lib/python3.13/functools.py", line 279, in 151s class partial: 151s ...<74 lines>... 151s __class_getitem__ = classmethod(GenericAlias) 151s KeyboardInterrupt 151s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 151s 151s self = 151s 151s def test_kernel_handler(self): 151s # GET kernel with given id 151s kid = self.kern_api.start().json()['id'] 151s r = self.kern_api.get(kid) 151s kern1 = r.json() 151s self.assertEqual(r.status_code, 200) 151s assert isinstance(kern1, dict) 151s self.assertIn('id', kern1) 151s self.assertEqual(kern1['id'], kid) 151s 151s # Request a bad kernel id and check that a JSON 151s # message is returned! 151s bad_id = '111-111-111-111-111' 151s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 151s self.kern_api.get(bad_id) 151s 151s # DELETE kernel with id 151s > r = self.kern_api.shutdown(kid) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/85ce0c31-9279-481e-a426-ec3809232d9a 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprmszl4sw/runtime/kernel-85ce0c31-9279-481e-a426-ec3809232d9a.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58093 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58205 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 85ce0c31-9279-481e-a426-ec3809232d9a, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.540000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/85ce0c31-9279-481e-a426-ec3809232d9a (::1) 0.910000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s 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 151s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 151s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.960000ms referer=None 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85ce0c31-9279-481e-a426-ec3809232d9a 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85ce0c31-9279-481e-a426-ec3809232d9a 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/85ce0c31-9279-481e-a426-ec3809232d9a (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/85ce0c31-9279-481e-a426-ec3809232d9a', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 151s yield maybe_future(km.shutdown_kernel(kernel_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/85ce0c31-9279-481e-a426-ec3809232d9a (::1) 14.470000ms referer=None 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.940000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for efe4097a-bc3b-451e-9243-73cac3da3bd5 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: efe4097a-bc3b-451e-9243-73cac3da3bd5 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/efe4097a-bc3b-451e-9243-73cac3da3bd5 (::1) 2.520000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85ce0c31-9279-481e-a426-ec3809232d9a 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85ce0c31-9279-481e-a426-ec3809232d9a 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 3, in 151s import contextlib 151s File "/usr/lib/python3.13/contextlib.py", line 89, in 151s class AsyncContextDecorator(object): 151s ...<12 lines>... 151s return inner 151s KeyboardInterrupt 151s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 151s 151s self = 151s 151s def test_main_kernel_handler(self): 151s # POST request 151s r = self.kern_api.start() 151s kern1 = r.json() 151s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 151s self.assertEqual(r.status_code, 201) 151s self.assertIsInstance(kern1, dict) 151s 151s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 151s expected_csp = '; '.join([ 151s "frame-ancestors 'self'", 151s 'report-uri ' + report_uri, 151s "default-src 'none'" 151s ]) 151s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 151s 151s # GET request 151s r = self.kern_api.list() 151s self.assertEqual(r.status_code, 200) 151s assert isinstance(r.json(), list) 151s self.assertEqual(r.json()[0]['id'], kern1['id']) 151s self.assertEqual(r.json()[0]['name'], kern1['name']) 151s 151s # create another kernel and check that they both are added to the 151s # list of kernels from a GET request 151s kern2 = self.kern_api.start().json() 151s assert isinstance(kern2, dict) 151s r = self.kern_api.list() 151s kernels = r.json() 151s self.assertEqual(r.status_code, 200) 151s assert isinstance(kernels, list) 151s self.assertEqual(len(kernels), 2) 151s 151s # Interrupt a kernel 151s r = self.kern_api.interrupt(kern2['id']) 151s self.assertEqual(r.status_code, 204) 151s 151s # Restart a kernel 151s > r = self.kern_api.restart(kern2['id']) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 151s return self._req('POST', url_path_join(id, 'restart')) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/0b8381ce-2364-4107-b8f2-ece32fa697b8/restart 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 151s import functools 151s File "", line 1360, in _find_and_load 151s File "", line 1331, in _find_and_load_unlocked 151s File "", line 935, in _load_unlocked 151s File "", line 1019, in exec_module 151s File "", line 1152, in get_code 151s File "", line 781, in _compile_bytecode 151s KeyboardInterrupt 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprmszl4sw/runtime/kernel-1af2b418-52b6-43e8-a11d-e310f19f16fd.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56231 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58697 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1af2b418-52b6-43e8-a11d-e310f19f16fd, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.230000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmprmszl4sw/runtime/kernel-0b8381ce-2364-4107-b8f2-ece32fa697b8.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38795 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35815 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0b8381ce-2364-4107-b8f2-ece32fa697b8, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.820000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 0b8381ce-2364-4107-b8f2-ece32fa697b8 151s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/0b8381ce-2364-4107-b8f2-ece32fa697b8/interrupt (::1) 1.010000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 151s yield maybe_future(km.restart_kernel(kernel_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 151s result = coro.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 151s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 151s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 151s yield self # This tells Task to wait for completion. 151s ^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 151s await ensure_async(kernel.restart_kernel(now=now)) 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 151s await self._async_shutdown_kernel(now=now, restart=True) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/0b8381ce-2364-4107-b8f2-ece32fa697b8/restart (::1) 7.950000ms referer=None 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.390000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1af2b418-52b6-43e8-a11d-e310f19f16fd 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1af2b418-52b6-43e8-a11d-e310f19f16fd 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/1af2b418-52b6-43e8-a11d-e310f19f16fd (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/1af2b418-52b6-43e8-a11d-e310f19f16fd', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 151s yield maybe_future(km.shutdown_kernel(kernel_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/1af2b418-52b6-43e8-a11d-e310f19f16fd (::1) 6.500000ms referer=None 151s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 151s 151s self = 151s 151s def test_no_kernels(self): 151s """Make sure there are no kernels running at the start""" 151s kernels = self.kern_api.list().json() 151s > self.assertEqual(kernels, []) 151s E AssertionError: Lists differ: [{'id': '1af2b418-52b6-43e8-a11d-e310f19f1[281 chars]: 0}] != [] 151s E 151s E First list contains 2 additional elements. 151s E First extra element 0: 151s E {'id': '1af2b418-52b6-43e8-a11d-e310f19f16fd', 'name': 'python3', 'last_activity': '2026-01-30T05:45:29.322077Z', 'execution_state': 'starting', 'connections': 0} 151s E 151s E + [] 151s E - [{'connections': 0, 151s E - 'execution_state': 'starting', 151s E - 'id': '1af2b418-52b6-43e8-a11d-e310f19f16fd', 151s E - 'last_activity': '2026-01-30T05:45:29.322077Z', 151s E - 'name': 'python3'}, 151s E - {'connections': 0, 151s E - 'execution_state': 'starting', 151s E - 'id': '0b8381ce-2364-4107-b8f2-ece32fa697b8', 151s E - 'last_activity': '2026-01-30T05:45:29.344581Z', 151s E - 'name': 'python3'}] 151s 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.830000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.750000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1af2b418-52b6-43e8-a11d-e310f19f16fd 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1af2b418-52b6-43e8-a11d-e310f19f16fd 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1af2b418-52b6-43e8-a11d-e310f19f16fd (::1) 2.370000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0b8381ce-2364-4107-b8f2-ece32fa697b8 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0b8381ce-2364-4107-b8f2-ece32fa697b8 151s ---------------------------- Captured log teardown ----------------------------- 151s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ae51c257-a1a3-40fd-a898-7583446ebe50 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85ce0c31-9279-481e-a426-ec3809232d9a 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: efe4097a-bc3b-451e-9243-73cac3da3bd5 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1af2b418-52b6-43e8-a11d-e310f19f16fd 151s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 151s __________________________ SessionAPITest.test_create __________________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/bf43a0a6-c4d7-4d27-875b-09b766648f22 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log setup ------------------------------ 151s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpms1hrd8n/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpms1hrd8n/etc/jupyter'] for config files 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpms1hrd8n/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpms1hrd8n/config 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpms1hrd8n/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpms1hrd8n/config 151s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpms1hrd8n/notebooks 151s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 151s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 151s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 151s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 151s WARNING NotebookApp:handlers.py:612 Forbidden 151s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.670000ms referer=None 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.200000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpms1hrd8n/runtime/kernel-15802b12-4be6-4e13-b863-04e3910e27ae.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39657 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58841 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 15802b12-4be6-4e13-b863-04e3910e27ae, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpms1hrd8n/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.950000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.990000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/bf43a0a6-c4d7-4d27-875b-09b766648f22 (::1) 2.580000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.430000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15802b12-4be6-4e13-b863-04e3910e27ae 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15802b12-4be6-4e13-b863-04e3910e27ae 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/bf43a0a6-c4d7-4d27-875b-09b766648f22 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/bf43a0a6-c4d7-4d27-875b-09b766648f22', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 151s yielded = self.gen.send(value) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/bf43a0a6-c4d7-4d27-875b-09b766648f22 (::1) 8.510000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 151s from ._local import * 151s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 151s class PureWindowsPath(PurePath): 151s ...<7 lines>... 151s __slots__ = () 151s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 151s import ntpath 151s File "/usr/lib/python3.13/ntpath.py", line 277, in 151s from nt import _getvolumepathname 151s File "", line 1360, in _find_and_load 151s File "", line 1322, in _find_and_load_unlocked 151s File "", line 1262, in _find_spec 151s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 151s method_name = 'spec_for_{fullname}'.format(**locals()) 151s ~~~~~~^^ 151s KeyboardInterrupt 151s __________________ SessionAPITest.test_create_console_session __________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/eec0ac64-b62d-434c-9d41-e9187f81f9a1 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpms1hrd8n/runtime/kernel-999050cb-28b7-4c9c-90fd-83994bad2e1c.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50617 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37649 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 999050cb-28b7-4c9c-90fd-83994bad2e1c, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpms1hrd8n/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.530000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.400000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 15802b12-4be6-4e13-b863-04e3910e27ae 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 15802b12-4be6-4e13-b863-04e3910e27ae 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/bf43a0a6-c4d7-4d27-875b-09b766648f22 (::1) 1.340000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 999050cb-28b7-4c9c-90fd-83994bad2e1c 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 999050cb-28b7-4c9c-90fd-83994bad2e1c 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/eec0ac64-b62d-434c-9d41-e9187f81f9a1 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/eec0ac64-b62d-434c-9d41-e9187f81f9a1', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 151s yielded = self.gen.send(value) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/eec0ac64-b62d-434c-9d41-e9187f81f9a1 (::1) 9.580000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 143, in 151s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 151s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3.13/enum.py", line 1834, in convert_class 151s contained = value2member_map.get(member._value_) 151s KeyboardInterrupt 151s ____________________ SessionAPITest.test_create_deprecated _____________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/975375ed-4667-45a5-bb04-1fb7bf17ea1f 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpms1hrd8n/runtime/kernel-38ddfcb6-f95e-46ca-a609-5eb7c51a78b5.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45631 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58447 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 38ddfcb6-f95e-46ca-a609-5eb7c51a78b5, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpms1hrd8n/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.670000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.680000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 999050cb-28b7-4c9c-90fd-83994bad2e1c 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 999050cb-28b7-4c9c-90fd-83994bad2e1c 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/eec0ac64-b62d-434c-9d41-e9187f81f9a1 (::1) 1.360000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 38ddfcb6-f95e-46ca-a609-5eb7c51a78b5 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 38ddfcb6-f95e-46ca-a609-5eb7c51a78b5 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/975375ed-4667-45a5-bb04-1fb7bf17ea1f (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/975375ed-4667-45a5-bb04-1fb7bf17ea1f', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 151s yielded = self.gen.send(value) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/975375ed-4667-45a5-bb04-1fb7bf17ea1f (::1) 7.820000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 381, in 151s import copyreg 151s File "", line 1360, in _find_and_load 151s File "", line 1322, in _find_and_load_unlocked 151s File "", line 1262, in _find_spec 151s File "", line 1556, in find_spec 151s File "", line 1530, in _get_spec 151s File "", line 1629, in find_spec 151s File "", line 152, in _path_stat 151s KeyboardInterrupt 151s ___________________ SessionAPITest.test_create_file_session ____________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8043fb22-4ccc-4427-9c3c-835986215354 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpms1hrd8n/runtime/kernel-ecda9d27-330c-4424-9299-65b127b76f05.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57443 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43713 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: ecda9d27-330c-4424-9299-65b127b76f05, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpms1hrd8n/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.940000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 38ddfcb6-f95e-46ca-a609-5eb7c51a78b5 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 38ddfcb6-f95e-46ca-a609-5eb7c51a78b5 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/975375ed-4667-45a5-bb04-1fb7bf17ea1f (::1) 1.380000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ecda9d27-330c-4424-9299-65b127b76f05 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ecda9d27-330c-4424-9299-65b127b76f05 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8043fb22-4ccc-4427-9c3c-835986215354 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8043fb22-4ccc-4427-9c3c-835986215354', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 151s yielded = self.gen.send(value) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 151s from ._local import * 151s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 151s import warnings 151s File "", line 1360, in _find_and_load 151s File "", line 1331, in _find_and_load_unlocked 151s File "", line 935, in _load_unlocked 151s File "", line 1019, in exec_module 151s File "", line 1152, in get_code 151s File "", line 781, in _compile_bytecode 151s KeyboardInterrupt 151s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 151s 151s self = 151s 151s def test_create_with_kernel_id(self): 151s # create a new kernel 151s r = self.request('POST', 'api/kernels') 151s r.raise_for_status() 151s kernel = r.json() 151s 151s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 151s self.assertEqual(resp.status_code, 201) 151s newsession = resp.json() 151s self.assertIn('id', newsession) 151s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 151s self.assertEqual(newsession['kernel']['id'], kernel['id']) 151s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 151s 151s sessions = self.sess_api.list().json() 151s > self.assertEqual(sessions, [newsession]) 151s E AssertionError: Lists differ: [{'id': '8043fb22-4ccc-4427-9c3c-835986215354', 'p[553 chars]ne}}] != [{'id': '6cc74897-ce0c-47eb-bd76-cbbd0b27b43d', 'p[279 chars]ne}}] 151s E 151s E First differing element 0: 151s E {'id': '8043fb22-4ccc-4427-9c3c-835986215354', 'p[218 chars]: 0}} 151s E {'id': '6cc74897-ce0c-47eb-bd76-cbbd0b27b43d', 'p[278 chars]one}} 151s E 151s E First list contains 1 additional elements. 151s E First extra element 1: 151s E {'id': '6cc74897-ce0c-47eb-bd76-cbbd0b27b43d', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'f458e6ba-ef0f-43ef-bde2-db0cde68425e', 'name': 'python3', 'last_activity': '2026-01-30T05:45:29.826504Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 151s E 151s E Diff is 830 characters long. Set self.maxDiff to None to see it. 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpms1hrd8n/runtime/kernel-f458e6ba-ef0f-43ef-bde2-db0cde68425e.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55531 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44583 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: f458e6ba-ef0f-43ef-bde2-db0cde68425e, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.120000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.370000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.360000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.840000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ecda9d27-330c-4424-9299-65b127b76f05 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ecda9d27-330c-4424-9299-65b127b76f05 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8043fb22-4ccc-4427-9c3c-835986215354 (::1) 3.310000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f458e6ba-ef0f-43ef-bde2-db0cde68425e 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f458e6ba-ef0f-43ef-bde2-db0cde68425e 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 151s yielded = self.gen.send(value) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 8.430000ms referer=None 151s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.010000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpms1hrd8n/runtime/kernel-56a9a216-d954-4167-bf3f-3015c1163911.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36489 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48883 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 56a9a216-d954-4167-bf3f-3015c1163911, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.440000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f458e6ba-ef0f-43ef-bde2-db0cde68425e 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f458e6ba-ef0f-43ef-bde2-db0cde68425e 151s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 1.340000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.700000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.680000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 56a9a216-d954-4167-bf3f-3015c1163911 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56a9a216-d954-4167-bf3f-3015c1163911 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 151s yielded = self.gen.send(value) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 6.580000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 151s from ipykernel import kernelapp as app 151s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 151s from .connect import * # noqa: F403 151s ^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 151s import json 151s File "/usr/lib/python3.13/json/__init__.py", line 106, in 151s from .decoder import JSONDecoder, JSONDecodeError 151s File "", line 1360, in _find_and_load 151s File "", line 1331, in _find_and_load_unlocked 151s File "", line 935, in _load_unlocked 151s File "", line 1019, in exec_module 151s File "", line 1152, in get_code 151s File "", line 781, in _compile_bytecode 151s KeyboardInterrupt 151s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.490000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpms1hrd8n/runtime/kernel-83884a02-f881-4a70-912e-532863238902.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55155 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59377 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 83884a02-f881-4a70-912e-532863238902, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpms1hrd8n/notebooks/foo'} 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 56a9a216-d954-4167-bf3f-3015c1163911 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 56a9a216-d954-4167-bf3f-3015c1163911 151s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 17.690000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.710000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.720000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 83884a02-f881-4a70-912e-532863238902 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 83884a02-f881-4a70-912e-532863238902 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 151s yielded = self.gen.send(value) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6cc74897-ce0c-47eb-bd76-cbbd0b27b43d (::1) 6.930000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 316, in 151s Match = type(_compiler.compile('', 0).match('')) 151s ~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 151s code = _code(p, flags) 151s File "/usr/lib/python3.13/re/_compiler.py", line 576, in _code 151s def _code(p, flags): 151s 151s KeyboardInterrupt 151s _______________________ SessionAPITest.test_modify_type ________________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ddd0746e-1f69-4ef6-9a76-9a4886cc72a1 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpms1hrd8n/runtime/kernel-a804d0fa-a8ff-4836-ad9a-e5586d3a401d.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59679 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57729 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: a804d0fa-a8ff-4836-ad9a-e5586d3a401d, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpms1hrd8n/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.630000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/ddd0746e-1f69-4ef6-9a76-9a4886cc72a1 (::1) 2.500000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.240000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a804d0fa-a8ff-4836-ad9a-e5586d3a401d 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a804d0fa-a8ff-4836-ad9a-e5586d3a401d 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ddd0746e-1f69-4ef6-9a76-9a4886cc72a1 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ddd0746e-1f69-4ef6-9a76-9a4886cc72a1', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 151s yielded = self.gen.send(value) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 151s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 151s stopper = ensure_async(km.shutdown_kernel(now, restart)) 151s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 151s return _runner_map[name].run(inner) 151s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 151s return fut.result(None) 151s ~~~~~~~~~~^^^^^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 151s return self.__get_result() 151s ~~~~~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 151s raise self._exception 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s --------------------------- Captured stderr teardown --------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 126, in 151s from . import _compiler, _parser 151s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 151s from . import _parser 151s File "/usr/lib/python3.13/re/_parser.py", line 15, in 151s from ._constants import * 151s File "/usr/lib/python3.13/re/_constants.py", line 130, in 151s ATCODES = _makecodes( 151s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 151s ...<5 lines>... 151s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 151s ) 151s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 151s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 151s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 151s KeyboardInterrupt 151s ---------------------------- Captured log teardown ----------------------------- 151s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a804d0fa-a8ff-4836-ad9a-e5586d3a401d 151s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 151s _______________________ AsyncSessionAPITest.test_create ________________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8fbf4477-40b0-4a0a-ab3a-2e54902c318c 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log setup ------------------------------ 151s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpjs99dywb/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpjs99dywb/etc/jupyter'] for config files 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjs99dywb/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpjs99dywb/config 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjs99dywb/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 151s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpjs99dywb/config 151s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpjs99dywb/notebooks 151s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 151s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 151s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 151s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 151s WARNING NotebookApp:handlers.py:612 Forbidden 151s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.720000ms referer=None 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.060000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjs99dywb/runtime/kernel-4e28b691-4c98-4097-bf9b-2c6bd395ab61.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56459 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60603 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4e28b691-4c98-4097-bf9b-2c6bd395ab61, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjs99dywb/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.370000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/8fbf4477-40b0-4a0a-ab3a-2e54902c318c (::1) 0.850000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.310000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e28b691-4c98-4097-bf9b-2c6bd395ab61 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e28b691-4c98-4097-bf9b-2c6bd395ab61 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8fbf4477-40b0-4a0a-ab3a-2e54902c318c (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8fbf4477-40b0-4a0a-ab3a-2e54902c318c', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 151s gc.collect() 151s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 151s 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 151s from ._local import * 151s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 151s class PureWindowsPath(PurePath): 151s ...<7 lines>... 151s __slots__ = () 151s KeyboardInterrupt 151s _______________ AsyncSessionAPITest.test_create_console_session ________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ef152249-9d37-4b81-89d1-c7edbe2857e6 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjs99dywb/runtime/kernel-a6e32baf-722b-4fa9-ae7c-893415de9b92.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43505 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40009 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: a6e32baf-722b-4fa9-ae7c-893415de9b92, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjs99dywb/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.400000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4e28b691-4c98-4097-bf9b-2c6bd395ab61 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e28b691-4c98-4097-bf9b-2c6bd395ab61 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8fbf4477-40b0-4a0a-ab3a-2e54902c318c (::1) 2.520000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6e32baf-722b-4fa9-ae7c-893415de9b92 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e32baf-722b-4fa9-ae7c-893415de9b92 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ef152249-9d37-4b81-89d1-c7edbe2857e6 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ef152249-9d37-4b81-89d1-c7edbe2857e6', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ef152249-9d37-4b81-89d1-c7edbe2857e6 (::1) 6.530000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 126, in 151s from . import _compiler, _parser 151s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 151s from . import _parser 151s File "/usr/lib/python3.13/re/_parser.py", line 15, in 151s from ._constants import * 151s File "", line 1360, in _find_and_load 151s File "", line 1331, in _find_and_load_unlocked 151s File "", line 935, in _load_unlocked 151s File "", line 1019, in exec_module 151s File "", line 1152, in get_code 151s File "", line 781, in _compile_bytecode 151s KeyboardInterrupt 151s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/594f279e-eb08-4983-9648-72de257b6cfd 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjs99dywb/runtime/kernel-c6771adc-a6f4-499c-b44d-e70c0bf55d8e.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34105 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42905 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: c6771adc-a6f4-499c-b44d-e70c0bf55d8e, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjs99dywb/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.200000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a6e32baf-722b-4fa9-ae7c-893415de9b92 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e32baf-722b-4fa9-ae7c-893415de9b92 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ef152249-9d37-4b81-89d1-c7edbe2857e6 (::1) 2.340000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c6771adc-a6f4-499c-b44d-e70c0bf55d8e 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6771adc-a6f4-499c-b44d-e70c0bf55d8e 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/594f279e-eb08-4983-9648-72de257b6cfd (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/594f279e-eb08-4983-9648-72de257b6cfd', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s --------------------------- Captured stderr teardown --------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 126, in 151s from . import _compiler, _parser 151s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 151s from . import _parser 151s File "/usr/lib/python3.13/re/_parser.py", line 15, in 151s from ._constants import * 151s File "", line 1349, in _find_and_load 151s KeyboardInterrupt 151s _________________ AsyncSessionAPITest.test_create_file_session _________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ebb93282-d7c3-4f27-ac95-b37ab04a9b46 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjs99dywb/runtime/kernel-deeeb3fe-10aa-46b3-b852-75e5bde543ed.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43497 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36469 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: deeeb3fe-10aa-46b3-b852-75e5bde543ed, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjs99dywb/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.960000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.630000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c6771adc-a6f4-499c-b44d-e70c0bf55d8e 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6771adc-a6f4-499c-b44d-e70c0bf55d8e 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/594f279e-eb08-4983-9648-72de257b6cfd (::1) 2.260000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for deeeb3fe-10aa-46b3-b852-75e5bde543ed 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: deeeb3fe-10aa-46b3-b852-75e5bde543ed 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ebb93282-d7c3-4f27-ac95-b37ab04a9b46 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ebb93282-d7c3-4f27-ac95-b37ab04a9b46', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s --------------------------- Captured stderr teardown --------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 126, in 151s from . import _compiler, _parser 151s File "/usr/lib/python3.13/re/_compiler.py", line 13, in 151s import _sre 151s KeyboardInterrupt 151s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 151s 151s self = 151s 151s def test_create_with_kernel_id(self): 151s # create a new kernel 151s r = self.request('POST', 'api/kernels') 151s r.raise_for_status() 151s kernel = r.json() 151s 151s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 151s self.assertEqual(resp.status_code, 201) 151s newsession = resp.json() 151s self.assertIn('id', newsession) 151s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 151s self.assertEqual(newsession['kernel']['id'], kernel['id']) 151s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 151s 151s sessions = self.sess_api.list().json() 151s > self.assertEqual(sessions, [newsession]) 151s E AssertionError: Lists differ: [{'id': 'ebb93282-d7c3-4f27-ac95-b37ab04a9b46', 'p[553 chars]ne}}] != [{'id': 'be3eb44a-247a-4bbf-bd35-31ae257c8cde', 'p[279 chars]ne}}] 151s E 151s E First differing element 0: 151s E {'id': 'ebb93282-d7c3-4f27-ac95-b37ab04a9b46', 'p[218 chars]: 0}} 151s E {'id': 'be3eb44a-247a-4bbf-bd35-31ae257c8cde', 'p[278 chars]one}} 151s E 151s E First list contains 1 additional elements. 151s E First extra element 1: 151s E {'id': 'be3eb44a-247a-4bbf-bd35-31ae257c8cde', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '6015ee95-2fb9-4030-bae4-114de3327156', 'name': 'python3', 'last_activity': '2026-01-30T05:45:30.458838Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 151s E 151s E Diff is 830 characters long. Set self.maxDiff to None to see it. 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjs99dywb/runtime/kernel-6015ee95-2fb9-4030-bae4-114de3327156.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33161 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50391 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6015ee95-2fb9-4030-bae4-114de3327156, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.790000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.680000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.350000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for deeeb3fe-10aa-46b3-b852-75e5bde543ed 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: deeeb3fe-10aa-46b3-b852-75e5bde543ed 151s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/ebb93282-d7c3-4f27-ac95-b37ab04a9b46 (::1) 0.870000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6015ee95-2fb9-4030-bae4-114de3327156 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6015ee95-2fb9-4030-bae4-114de3327156 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde (::1) 6.460000ms referer=None 151s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.940000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjs99dywb/runtime/kernel-ff849f6b-1d23-4fb5-816e-c4e3d2ec3e78.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40105 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40383 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: ff849f6b-1d23-4fb5-816e-c4e3d2ec3e78, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.970000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6015ee95-2fb9-4030-bae4-114de3327156 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6015ee95-2fb9-4030-bae4-114de3327156 151s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde (::1) 2.590000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.660000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.150000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff849f6b-1d23-4fb5-816e-c4e3d2ec3e78 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff849f6b-1d23-4fb5-816e-c4e3d2ec3e78 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s ERROR NotebookApp:log.py:55 { 151s "Host": "localhost:12341", 151s "Accept": "*/*", 151s "User-Agent": "python-requests/2.32.5" 151s } 151s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde (::1) 7.510000ms referer=None 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 143, in 151s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 151s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3.13/enum.py", line 1805, in convert_class 151s enum_class = type(cls_name, (etype, ), body, boundary=boundary, _simple=True) 151s File "/usr/lib/python3.13/enum.py", line 498, in __new__ 151s def __new__(metacls, cls, bases, classdict, *, boundary=None, _simple=False, **kwds): 151s 151s KeyboardInterrupt 151s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ----------------------------- Captured stderr call ----------------------------- 151s Traceback (most recent call last): 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.240000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjs99dywb/runtime/kernel-0c32bdf8-78de-4e2b-ac57-82e47de5b8bb.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58959 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37331 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0c32bdf8-78de-4e2b-ac57-82e47de5b8bb, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpjs99dywb/notebooks/foo'} 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ff849f6b-1d23-4fb5-816e-c4e3d2ec3e78 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff849f6b-1d23-4fb5-816e-c4e3d2ec3e78 151s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde (::1) 16.140000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.060000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0c32bdf8-78de-4e2b-ac57-82e47de5b8bb 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c32bdf8-78de-4e2b-ac57-82e47de5b8bb 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/be3eb44a-247a-4bbf-bd35-31ae257c8cde', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s --------------------------- Captured stderr teardown --------------------------- 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 6, in 151s import fnmatch 151s File "", line 1360, in _find_and_load 151s File "", line 1322, in _find_and_load_unlocked 151s File "", line 1262, in _find_spec 151s File "", line 984, in find_spec 151s KeyboardInterrupt 151s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 151s 151s @self.addCleanup 151s def cleanup_sessions(): 151s for session in self.sess_api.list().json(): 151s > self.sess_api.delete(session['id']) 151s 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 151s return self._req('DELETE', id) 151s ^^^^^^^^^^^^^^^^^^^^^^^ 151s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 151s response.raise_for_status() 151s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 151s 151s self = 151s 151s def raise_for_status(self): 151s """Raises :class:`HTTPError`, if one occurred.""" 151s 151s http_error_msg = "" 151s if isinstance(self.reason, bytes): 151s # We attempt to decode utf-8 first because some servers 151s # choose to localize their reason strings. If the string 151s # isn't utf-8, we fall back to iso-8859-1 for all other 151s # encodings. (See PR #3538) 151s try: 151s reason = self.reason.decode("utf-8") 151s except UnicodeDecodeError: 151s reason = self.reason.decode("iso-8859-1") 151s else: 151s reason = self.reason 151s 151s if 400 <= self.status_code < 500: 151s http_error_msg = ( 151s f"{self.status_code} Client Error: {reason} for url: {self.url}" 151s ) 151s 151s elif 500 <= self.status_code < 600: 151s http_error_msg = ( 151s f"{self.status_code} Server Error: {reason} for url: {self.url}" 151s ) 151s 151s if http_error_msg: 151s > raise HTTPError(http_error_msg, response=self) 151s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/f76c1eab-dd7e-44a6-a6eb-cfe6d68d3712 151s 151s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 151s ------------------------------ Captured log call ------------------------------- 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 151s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpjs99dywb/runtime/kernel-e0241c2a-ac0a-4f97-9c6a-470f765a61d9.json'] 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44081 151s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37937 151s INFO NotebookApp:kernelmanager.py:179 Kernel started: e0241c2a-ac0a-4f97-9c6a-470f765a61d9, name: python3 151s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpjs99dywb/notebooks/foo'} 151s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.870000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/f76c1eab-dd7e-44a6-a6eb-cfe6d68d3712 (::1) 1.130000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.270000ms 151s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 151s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e0241c2a-ac0a-4f97-9c6a-470f765a61d9 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e0241c2a-ac0a-4f97-9c6a-470f765a61d9 151s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/f76c1eab-dd7e-44a6-a6eb-cfe6d68d3712 (::1) 151s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/f76c1eab-dd7e-44a6-a6eb-cfe6d68d3712', version='HTTP/1.1', remote_ip='::1') 151s Traceback (most recent call last): 151s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 151s result = await result 151s ^^^^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 151s future.result() 151s ~~~~~~~~~~~~~^^ 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 151s yield maybe_future(sm.delete_session(session_id)) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 151s yielded = self.gen.throw(exc) 151s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 151s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 151s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 151s value = future.result() 151s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 151s raise self._exception.with_traceback(self._exception_tb) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 151s result = coro.send(None) 151s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 151s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 151s raise km.ready.exception() # type: ignore[misc] 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 151s await kernel_awaitable 151s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 151s result = await obj 151s ^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 151s raise e 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 151s out = await method(self, *args, **kwargs) 151s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 151s await self._async_finish_shutdown(restart=restart) 151s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 151s await asyncio.wait_for( 151s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 151s ) 151s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 151s async with timeouts.timeout(timeout): 151s ~~~~~~~~~~~~~~~~^^^^^^^^^ 151s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 151s raise RuntimeError("Timeout should be used inside a task") 151s RuntimeError: Timeout should be used inside a task 151s WARNING NotebookApp:handlers.py:612 Unhandled error 151s --------------------------- Captured stderr teardown --------------------------- 151s Traceback (most recent call last): 151s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 151s return _run_code(code, main_globals, None, 151s "__main__", mod_spec) 151s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 151s exec(code, run_globals) 151s ~~~~^^^^^^^^^^^^^^^^^^^ 151s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 151s from pathlib import Path 151s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 151s from ._abc import * 151s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 151s from glob import _Globber, _no_recurse_symlinks 151s File "/usr/lib/python3.13/glob.py", line 5, in 151s import re 151s File "/usr/lib/python3.13/re/__init__.py", line 126, in 151s from . import _compiler, _parser 151s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 151s from . import _parser 151s File "", line 1360, in _find_and_load 151s File "", line 1331, in _find_and_load_unlocked 151s File "", line 935, in _load_unlocked 151s File "", line 1019, in exec_module 151s File "", line 1152, in get_code 151s File "", line 781, in _compile_bytecode 151s KeyboardInterrupt 151s ---------------------------- Captured log teardown ----------------------------- 151s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0c32bdf8-78de-4e2b-ac57-82e47de5b8bb 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a6e32baf-722b-4fa9-ae7c-893415de9b92 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4e28b691-4c98-4097-bf9b-2c6bd395ab61 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c6771adc-a6f4-499c-b44d-e70c0bf55d8e 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ff849f6b-1d23-4fb5-816e-c4e3d2ec3e78 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6015ee95-2fb9-4030-bae4-114de3327156 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: deeeb3fe-10aa-46b3-b852-75e5bde543ed 151s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e0241c2a-ac0a-4f97-9c6a-470f765a61d9 151s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 151s =============================== warnings summary =============================== 151s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 151s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 151s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 151s return LooseVersion(v) >= LooseVersion(check) 151s 151s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 151s services/kernels/tests/test_kernels_api.py: 72 warnings 151s services/sessions/tests/test_sessions_api.py: 106 warnings 151s /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). 151s dt = unaware(*args, **kwargs) 151s 151s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 151s /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 151s pytestmark = pytest.mark.integration_tests 151s 151s services/kernels/tests/test_kernels_api.py: 6 warnings 151s services/sessions/tests/test_sessions_api.py: 6 warnings 151s /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 151s policy = events.get_event_loop_policy() 151s 151s services/kernels/tests/test_kernels_api.py: 24 warnings 151s services/sessions/tests/test_sessions_api.py: 19 warnings 151s /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 151s loop = events.get_event_loop_policy().get_event_loop() 151s 151s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 151s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 151s loop.make_current() 151s 151s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 151s =========================== short test summary info ============================ 151s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 151s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 151s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 151s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 151s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 151s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 151s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 151s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 151s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 151s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 151s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 151s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 151s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 151s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 151s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 151s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 151s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 151s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 151s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 151s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 151s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 151s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 151s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 151s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 151s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 151s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 151s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 151s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 151s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 151s ===== 25 failed, 2 passed, 303 deselected, 238 warnings, 4 errors in 5.90s ===== 152s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 152s *** 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 155s ============================= test session starts ============================== 155s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 155s rootdir: /tmp/autopkgtest.CeZch0/autopkgtest_tmp 155s plugins: typeguard-4.4.4 155s collected 330 items / 305 deselected / 25 selected 155s run-last-failure: rerun previous 25 failures 155s 157s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 158s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 158s 158s ==================================== ERRORS ==================================== 158s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 158s 158s self = 158s 158s def tearDown(self): 158s for k in self.kern_api.list().json(): 158s > self.kern_api.shutdown(k['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8cdb9144-f182-406f-aaa8-f8f391380a8c 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "/usr/lib/python3.13/glob.py", line 3, in 158s import contextlib 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1017, in exec_module 158s KeyboardInterrupt 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 158s from ipykernel import kernelapp as app 158s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 158s from .connect import * # noqa: F403 158s ^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 158s import jupyter_client 158s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 158s from .asynchronous import AsyncKernelClient 158s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 158s from .client import AsyncKernelClient # noqa 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 158s import zmq.asyncio 158s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 158s import asyncio 158s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 158s from .base_events import * 158s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 158s from . import coroutines 158s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 158s import inspect 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2u8dsam2/runtime/kernel-8cdb9144-f182-406f-aaa8-f8f391380a8c.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33381 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40583 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8cdb9144-f182-406f-aaa8-f8f391380a8c, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.860000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2u8dsam2/runtime/kernel-a9f4a54a-fe41-4c1d-a095-42420a2b9307.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49457 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41517 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9f4a54a-fe41-4c1d-a095-42420a2b9307, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.010000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a9f4a54a-fe41-4c1d-a095-42420a2b9307 158s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a9f4a54a-fe41-4c1d-a095-42420a2b9307/interrupt (::1) 2.850000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 158s yield maybe_future(km.restart_kernel(kernel_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 158s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 158s await ensure_async(kernel.restart_kernel(now=now)) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 158s await self._async_shutdown_kernel(now=now, restart=True) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a9f4a54a-fe41-4c1d-a095-42420a2b9307/restart (::1) 13.170000ms referer=None 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.690000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8cdb9144-f182-406f-aaa8-f8f391380a8c 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8cdb9144-f182-406f-aaa8-f8f391380a8c 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8cdb9144-f182-406f-aaa8-f8f391380a8c (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8cdb9144-f182-406f-aaa8-f8f391380a8c', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 158s yielded = ctx_run(next, result) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 158s yield maybe_future(km.shutdown_kernel(kernel_id)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 158s 158s self = 158s 158s def tearDown(self): 158s for k in self.kern_api.list().json(): 158s > self.kern_api.shutdown(k['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/7dda4e42-5167-435d-877d-7d24973dc63b 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 158s import functools 158s File "/usr/lib/python3.13/functools.py", line 18, in 158s from collections import namedtuple 158s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 158s from _collections import deque 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 946, in _load_unlocked 158s KeyboardInterrupt 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8f2ff4_x/runtime/kernel-7dda4e42-5167-435d-877d-7d24973dc63b.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57359 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33415 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7dda4e42-5167-435d-877d-7d24973dc63b, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.620000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.630000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8f2ff4_x/runtime/kernel-873dab23-95dd-4619-94f0-ca06ab37da8e.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50997 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40493 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 873dab23-95dd-4619-94f0-ca06ab37da8e, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.270000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 873dab23-95dd-4619-94f0-ca06ab37da8e 158s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/873dab23-95dd-4619-94f0-ca06ab37da8e/interrupt (::1) 4.660000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 158s yield maybe_future(km.restart_kernel(kernel_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 158s result = coro.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 158s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 158s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 158s yield self # This tells Task to wait for completion. 158s ^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 158s await ensure_async(kernel.restart_kernel(now=now)) 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 158s await self._async_shutdown_kernel(now=now, restart=True) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/873dab23-95dd-4619-94f0-ca06ab37da8e/restart (::1) 8.070000ms referer=None 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7dda4e42-5167-435d-877d-7d24973dc63b 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7dda4e42-5167-435d-877d-7d24973dc63b 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7dda4e42-5167-435d-877d-7d24973dc63b (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7dda4e42-5167-435d-877d-7d24973dc63b', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 158s yield maybe_future(km.shutdown_kernel(kernel_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 158s from ipykernel import kernelapp as app 158s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 158s from .connect import * # noqa: F403 158s ^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 158s import jupyter_client 158s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 158s from .asynchronous import AsyncKernelClient 158s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 158s from .client import AsyncKernelClient # noqa 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 158s import zmq.asyncio 158s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 158s import asyncio 158s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 158s from .base_events import * 158s File "/usr/lib/python3.13/asyncio/base_events.py", line 34, in 158s import ssl 158s File "/usr/lib/python3.13/ssl.py", line 100, in 158s import _ssl # if we can't import it, let the error propagate 158s ^^^^^^^^^^^ 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1326, in exec_module 158s File "", line 491, in _verbose_message 158s KeyboardInterrupt 158s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk7wtnch3/runtime/kernel-897f1e5c-5b79-41fe-a41c-69b4d04d65e7.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42963 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43071 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 897f1e5c-5b79-41fe-a41c-69b4d04d65e7, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.860000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.190000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.980000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d32bd172-9b75-4c49-b022-6854ff875681 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d32bd172-9b75-4c49-b022-6854ff875681 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fffbc692-fcd5-4652-94b3-482a461b9b1e (::1) 1.420000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 897f1e5c-5b79-41fe-a41c-69b4d04d65e7 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 897f1e5c-5b79-41fe-a41c-69b4d04d65e7 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 158s yielded = self.gen.send(value) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 158s from ipykernel import kernelapp as app 158s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 158s from .connect import * # noqa: F403 158s ^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 158s from subprocess import PIPE, Popen 158s File "/usr/lib/python3.13/subprocess.py", line 49, in 158s import signal 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk8mk89qi/runtime/kernel-62444595-de67-4372-91c3-14a071bf33b9.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33617 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55189 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 62444595-de67-4372-91c3-14a071bf33b9, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.950000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 3.830000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9f9019f-a5b4-448d-b9ec-5e2f4a5eb657 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9f9019f-a5b4-448d-b9ec-5e2f4a5eb657 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a3896f5e-5d68-45a4-a8b5-5e487e54ce98 (::1) 2.620000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62444595-de67-4372-91c3-14a071bf33b9 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62444595-de67-4372-91c3-14a071bf33b9 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 158s from ipykernel import kernelapp as app 158s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 158s from .connect import * # noqa: F403 158s ^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 158s from subprocess import PIPE, Popen 158s File "/usr/lib/python3.13/subprocess.py", line 125, in 158s import selectors 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s =================================== FAILURES =================================== 158s ______________________ KernelAPITest.test_default_kernel _______________________ 158s 158s self = 158s 158s def tearDown(self): 158s for k in self.kern_api.list().json(): 158s > self.kern_api.shutdown(k['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/16e93570-0368-4518-bd49-46334df7ae59 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ------------------------------ Captured log setup ------------------------------ 158s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp2u8dsam2/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp2u8dsam2/etc/jupyter'] for config files 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2u8dsam2/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp2u8dsam2/config 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2u8dsam2/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp2u8dsam2/config 158s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp2u8dsam2/notebooks 158s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 158s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 158s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 158s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 158s WARNING NotebookApp:handlers.py:612 Forbidden 158s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.930000ms referer=None 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2u8dsam2/runtime/kernel-16e93570-0368-4518-bd49-46334df7ae59.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42075 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38689 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 16e93570-0368-4518-bd49-46334df7ae59, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 50.930000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.740000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 16e93570-0368-4518-bd49-46334df7ae59 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16e93570-0368-4518-bd49-46334df7ae59 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/16e93570-0368-4518-bd49-46334df7ae59 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/16e93570-0368-4518-bd49-46334df7ae59', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 158s yielded = ctx_run(next, result) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 158s yield maybe_future(km.shutdown_kernel(kernel_id)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "/usr/lib/python3.13/glob.py", line 5, in 158s import re 158s File "/usr/lib/python3.13/re/__init__.py", line 126, in 158s from . import _compiler, _parser 158s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 158s from . import _parser 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s ______________________ KernelAPITest.test_kernel_handler _______________________ 158s 158s self = 158s 158s def test_kernel_handler(self): 158s # GET kernel with given id 158s kid = self.kern_api.start().json()['id'] 158s r = self.kern_api.get(kid) 158s kern1 = r.json() 158s self.assertEqual(r.status_code, 200) 158s assert isinstance(kern1, dict) 158s self.assertIn('id', kern1) 158s self.assertEqual(kern1['id'], kid) 158s 158s # Request a bad kernel id and check that a JSON 158s # message is returned! 158s bad_id = '111-111-111-111-111' 158s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 158s self.kern_api.get(bad_id) 158s 158s # DELETE kernel with id 158s > r = self.kern_api.shutdown(kid) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d86ec825-8455-4548-add3-7c26c19bcef0 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 158s from ._local import * 158s File "/usr/lib/python3.13/pathlib/_local.py", line 12, in 158s import pwd 158s File "", line 1349, in _find_and_load 158s KeyboardInterrupt 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2u8dsam2/runtime/kernel-d86ec825-8455-4548-add3-7c26c19bcef0.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58707 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38955 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: d86ec825-8455-4548-add3-7c26c19bcef0, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.990000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d86ec825-8455-4548-add3-7c26c19bcef0 (::1) 1.450000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s 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 158s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 158s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.320000ms referer=None 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d86ec825-8455-4548-add3-7c26c19bcef0 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d86ec825-8455-4548-add3-7c26c19bcef0 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d86ec825-8455-4548-add3-7c26c19bcef0 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d86ec825-8455-4548-add3-7c26c19bcef0', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 158s yielded = ctx_run(next, result) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 158s yield maybe_future(km.shutdown_kernel(kernel_id)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d86ec825-8455-4548-add3-7c26c19bcef0 (::1) 9.820000ms referer=None 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 16e93570-0368-4518-bd49-46334df7ae59 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 16e93570-0368-4518-bd49-46334df7ae59 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/16e93570-0368-4518-bd49-46334df7ae59 (::1) 2.640000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d86ec825-8455-4548-add3-7c26c19bcef0 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d86ec825-8455-4548-add3-7c26c19bcef0 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d86ec825-8455-4548-add3-7c26c19bcef0 (::1) 1.150000ms 158s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 158s 158s self = 158s 158s def test_main_kernel_handler(self): 158s # POST request 158s r = self.kern_api.start() 158s kern1 = r.json() 158s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 158s self.assertEqual(r.status_code, 201) 158s self.assertIsInstance(kern1, dict) 158s 158s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 158s expected_csp = '; '.join([ 158s "frame-ancestors 'self'", 158s 'report-uri ' + report_uri, 158s "default-src 'none'" 158s ]) 158s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 158s 158s # GET request 158s r = self.kern_api.list() 158s self.assertEqual(r.status_code, 200) 158s assert isinstance(r.json(), list) 158s self.assertEqual(r.json()[0]['id'], kern1['id']) 158s self.assertEqual(r.json()[0]['name'], kern1['name']) 158s 158s # create another kernel and check that they both are added to the 158s # list of kernels from a GET request 158s kern2 = self.kern_api.start().json() 158s assert isinstance(kern2, dict) 158s r = self.kern_api.list() 158s kernels = r.json() 158s self.assertEqual(r.status_code, 200) 158s assert isinstance(kernels, list) 158s self.assertEqual(len(kernels), 2) 158s 158s # Interrupt a kernel 158s r = self.kern_api.interrupt(kern2['id']) 158s self.assertEqual(r.status_code, 204) 158s 158s # Restart a kernel 158s > r = self.kern_api.restart(kern2['id']) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 158s return self._req('POST', url_path_join(id, 'restart')) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/a9f4a54a-fe41-4c1d-a095-42420a2b9307/restart 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "/usr/lib/python3.13/glob.py", line 3, in 158s import contextlib 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1017, in exec_module 158s KeyboardInterrupt 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 158s from ipykernel import kernelapp as app 158s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 158s from .connect import * # noqa: F403 158s ^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 158s import jupyter_client 158s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 158s from .asynchronous import AsyncKernelClient 158s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 158s from .client import AsyncKernelClient # noqa 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 158s import zmq.asyncio 158s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 158s import asyncio 158s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 158s from .base_events import * 158s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 158s from . import coroutines 158s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 158s import inspect 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2u8dsam2/runtime/kernel-8cdb9144-f182-406f-aaa8-f8f391380a8c.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33381 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40583 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8cdb9144-f182-406f-aaa8-f8f391380a8c, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.860000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.770000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp2u8dsam2/runtime/kernel-a9f4a54a-fe41-4c1d-a095-42420a2b9307.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49457 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41517 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9f4a54a-fe41-4c1d-a095-42420a2b9307, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 21.010000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a9f4a54a-fe41-4c1d-a095-42420a2b9307 158s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a9f4a54a-fe41-4c1d-a095-42420a2b9307/interrupt (::1) 2.850000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 158s yield maybe_future(km.restart_kernel(kernel_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 158s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 158s await ensure_async(kernel.restart_kernel(now=now)) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 158s await self._async_shutdown_kernel(now=now, restart=True) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a9f4a54a-fe41-4c1d-a095-42420a2b9307/restart (::1) 13.170000ms referer=None 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.690000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8cdb9144-f182-406f-aaa8-f8f391380a8c 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8cdb9144-f182-406f-aaa8-f8f391380a8c 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8cdb9144-f182-406f-aaa8-f8f391380a8c (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8cdb9144-f182-406f-aaa8-f8f391380a8c', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 158s yielded = ctx_run(next, result) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 158s yield maybe_future(km.shutdown_kernel(kernel_id)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ________________________ KernelAPITest.test_no_kernels _________________________ 158s 158s self = 158s 158s def test_no_kernels(self): 158s """Make sure there are no kernels running at the start""" 158s kernels = self.kern_api.list().json() 158s > self.assertEqual(kernels, []) 158s E AssertionError: Lists differ: [{'id': '8cdb9144-f182-406f-aaa8-f8f391380[281 chars]: 0}] != [] 158s E 158s E First list contains 2 additional elements. 158s E First extra element 0: 158s E {'id': '8cdb9144-f182-406f-aaa8-f8f391380a8c', 'name': 'python3', 'last_activity': '2026-01-30T05:45:35.361717Z', 'execution_state': 'starting', 'connections': 0} 158s E 158s E + [] 158s E - [{'connections': 0, 158s E - 'execution_state': 'starting', 158s E - 'id': '8cdb9144-f182-406f-aaa8-f8f391380a8c', 158s E - 'last_activity': '2026-01-30T05:45:35.361717Z', 158s E - 'name': 'python3'}, 158s E - {'connections': 0, 158s E - 'execution_state': 'starting', 158s E - 'id': 'a9f4a54a-fe41-4c1d-a095-42420a2b9307', 158s E - 'last_activity': '2026-01-30T05:45:35.386528Z', 158s E - 'name': 'python3'}] 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.680000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8cdb9144-f182-406f-aaa8-f8f391380a8c 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8cdb9144-f182-406f-aaa8-f8f391380a8c 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8cdb9144-f182-406f-aaa8-f8f391380a8c (::1) 1.090000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9f4a54a-fe41-4c1d-a095-42420a2b9307 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9f4a54a-fe41-4c1d-a095-42420a2b9307 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a9f4a54a-fe41-4c1d-a095-42420a2b9307 (::1) 1.160000ms 158s ---------------------------- Captured log teardown ----------------------------- 158s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 158s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 158s _____________________ AsyncKernelAPITest.test_connections ______________________ 158s 158s self = 158s 158s def tearDown(self): 158s for k in self.kern_api.list().json(): 158s > self.kern_api.shutdown(k['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ------------------------------ Captured log setup ------------------------------ 158s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp8f2ff4_x/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp8f2ff4_x/etc/jupyter'] for config files 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp8f2ff4_x/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp8f2ff4_x/config 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp8f2ff4_x/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp8f2ff4_x/config 158s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp8f2ff4_x/notebooks 158s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 158s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 158s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 158s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 158s WARNING NotebookApp:handlers.py:612 Forbidden 158s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.870000ms referer=None 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8f2ff4_x/runtime/kernel-f30403ea-b836-4af8-bd4e-c6c8c6258a79.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37537 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39997 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: f30403ea-b836-4af8-bd4e-c6c8c6258a79, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.970000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79 (::1) 0.860000ms 158s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79/channels 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 158s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40327 158s DEBUG NotebookApp:kernelmanager.py:423 activity on f30403ea-b836-4af8-bd4e-c6c8c6258a79: status (starting) 158s DEBUG NotebookApp:kernelmanager.py:423 activity on f30403ea-b836-4af8-bd4e-c6c8c6258a79: status (busy) 158s 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/'}]} 158s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel f30403ea-b836-4af8-bd4e-c6c8c6258a79) to 5.4 (client). 158s DEBUG NotebookApp:kernelmanager.py:423 activity on f30403ea-b836-4af8-bd4e-c6c8c6258a79: status (idle) 158s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79/channels (::1) 552.500000ms 158s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79/channels 158s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39997 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40327 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37537 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36689 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40327 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37537 158s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 158s Setting websocket_ping_timeout=30000 158s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:kernelmanager.py:423 activity on f30403ea-b836-4af8-bd4e-c6c8c6258a79: status (busy) 158s DEBUG NotebookApp:kernelmanager.py:423 activity on f30403ea-b836-4af8-bd4e-c6c8c6258a79: status (busy) 158s DEBUG NotebookApp:kernelmanager.py:423 activity on f30403ea-b836-4af8-bd4e-c6c8c6258a79: status (idle) 158s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:kernelmanager.py:423 activity on f30403ea-b836-4af8-bd4e-c6c8c6258a79: status (idle) 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79 (::1) 1.060000ms 158s DEBUG NotebookApp:handlers.py:579 Websocket closed f30403ea-b836-4af8-bd4e-c6c8c6258a79:e02359d8-9e0257da9387e5a0b6a6854a 158s INFO NotebookApp:kernelmanager.py:222 Starting buffering for f30403ea-b836-4af8-bd4e-c6c8c6258a79:e02359d8-9e0257da9387e5a0b6a6854a 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79 (::1) 0.890000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79 (::1) 1.430000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 158s yield maybe_future(km.shutdown_kernel(kernel_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79 (::1) 10.190000ms referer=None 158s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 158s 158s self = 158s 158s def tearDown(self): 158s for k in self.kern_api.list().json(): 158s > self.kern_api.shutdown(k['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8f2ff4_x/runtime/kernel-5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56181 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53227 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.220000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.930000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f30403ea-b836-4af8-bd4e-c6c8c6258a79 (::1) 4.600000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 158s yield maybe_future(km.shutdown_kernel(kernel_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e (::1) 13.190000ms referer=None 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "/usr/lib/python3.13/glob.py", line 3, in 158s import contextlib 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 158s 158s self = 158s 158s def test_kernel_handler(self): 158s # GET kernel with given id 158s kid = self.kern_api.start().json()['id'] 158s r = self.kern_api.get(kid) 158s kern1 = r.json() 158s self.assertEqual(r.status_code, 200) 158s assert isinstance(kern1, dict) 158s self.assertIn('id', kern1) 158s self.assertEqual(kern1['id'], kid) 158s 158s # Request a bad kernel id and check that a JSON 158s # message is returned! 158s bad_id = '111-111-111-111-111' 158s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 158s self.kern_api.get(bad_id) 158s 158s # DELETE kernel with id 158s > r = self.kern_api.shutdown(kid) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/713ad68f-6197-4168-ae6b-35115eeaa59f 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "/usr/lib/python3.13/glob.py", line 5, in 158s import re 158s File "/usr/lib/python3.13/re/__init__.py", line 143, in 158s @enum._simple_enum(enum.IntFlag, boundary=enum.KEEP) 158s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3.13/enum.py", line 1852, in convert_class 158s setattr(enum_class, name, member) 158s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3.13/enum.py", line 837, in __setattr__ 158s member_map = cls.__dict__.get('_member_map_', {}) 158s KeyboardInterrupt 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8f2ff4_x/runtime/kernel-713ad68f-6197-4168-ae6b-35115eeaa59f.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45475 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34391 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 713ad68f-6197-4168-ae6b-35115eeaa59f, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.610000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/713ad68f-6197-4168-ae6b-35115eeaa59f (::1) 1.950000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s 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 158s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 158s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 3.000000ms referer=None 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 713ad68f-6197-4168-ae6b-35115eeaa59f 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 713ad68f-6197-4168-ae6b-35115eeaa59f 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/713ad68f-6197-4168-ae6b-35115eeaa59f (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/713ad68f-6197-4168-ae6b-35115eeaa59f', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 158s yield maybe_future(km.shutdown_kernel(kernel_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/713ad68f-6197-4168-ae6b-35115eeaa59f (::1) 14.740000ms referer=None 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e (::1) 1.040000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 713ad68f-6197-4168-ae6b-35115eeaa59f 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 713ad68f-6197-4168-ae6b-35115eeaa59f 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/713ad68f-6197-4168-ae6b-35115eeaa59f (::1) 0.960000ms 158s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 158s 158s self = 158s 158s def test_main_kernel_handler(self): 158s # POST request 158s r = self.kern_api.start() 158s kern1 = r.json() 158s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 158s self.assertEqual(r.status_code, 201) 158s self.assertIsInstance(kern1, dict) 158s 158s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 158s expected_csp = '; '.join([ 158s "frame-ancestors 'self'", 158s 'report-uri ' + report_uri, 158s "default-src 'none'" 158s ]) 158s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 158s 158s # GET request 158s r = self.kern_api.list() 158s self.assertEqual(r.status_code, 200) 158s assert isinstance(r.json(), list) 158s self.assertEqual(r.json()[0]['id'], kern1['id']) 158s self.assertEqual(r.json()[0]['name'], kern1['name']) 158s 158s # create another kernel and check that they both are added to the 158s # list of kernels from a GET request 158s kern2 = self.kern_api.start().json() 158s assert isinstance(kern2, dict) 158s r = self.kern_api.list() 158s kernels = r.json() 158s self.assertEqual(r.status_code, 200) 158s assert isinstance(kernels, list) 158s self.assertEqual(len(kernels), 2) 158s 158s # Interrupt a kernel 158s r = self.kern_api.interrupt(kern2['id']) 158s self.assertEqual(r.status_code, 204) 158s 158s # Restart a kernel 158s > r = self.kern_api.restart(kern2['id']) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 158s return self._req('POST', url_path_join(id, 'restart')) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/873dab23-95dd-4619-94f0-ca06ab37da8e/restart 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 158s import functools 158s File "/usr/lib/python3.13/functools.py", line 18, in 158s from collections import namedtuple 158s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 158s from _collections import deque 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 946, in _load_unlocked 158s KeyboardInterrupt 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8f2ff4_x/runtime/kernel-7dda4e42-5167-435d-877d-7d24973dc63b.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57359 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33415 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 7dda4e42-5167-435d-877d-7d24973dc63b, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.620000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.630000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp8f2ff4_x/runtime/kernel-873dab23-95dd-4619-94f0-ca06ab37da8e.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50997 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40493 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 873dab23-95dd-4619-94f0-ca06ab37da8e, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.270000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.880000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 873dab23-95dd-4619-94f0-ca06ab37da8e 158s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/873dab23-95dd-4619-94f0-ca06ab37da8e/interrupt (::1) 4.660000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 158s yield maybe_future(km.restart_kernel(kernel_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 158s result = coro.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 158s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 158s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 158s yield self # This tells Task to wait for completion. 158s ^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 158s await ensure_async(kernel.restart_kernel(now=now)) 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 158s await self._async_shutdown_kernel(now=now, restart=True) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/873dab23-95dd-4619-94f0-ca06ab37da8e/restart (::1) 8.070000ms referer=None 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7dda4e42-5167-435d-877d-7d24973dc63b 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7dda4e42-5167-435d-877d-7d24973dc63b 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/7dda4e42-5167-435d-877d-7d24973dc63b (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/7dda4e42-5167-435d-877d-7d24973dc63b', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 158s yield maybe_future(km.shutdown_kernel(kernel_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 158s 158s self = 158s 158s def test_no_kernels(self): 158s """Make sure there are no kernels running at the start""" 158s kernels = self.kern_api.list().json() 158s > self.assertEqual(kernels, []) 158s E AssertionError: Lists differ: [{'id': '7dda4e42-5167-435d-877d-7d24973dc[281 chars]: 0}] != [] 158s E 158s E First list contains 2 additional elements. 158s E First extra element 0: 158s E {'id': '7dda4e42-5167-435d-877d-7d24973dc63b', 'name': 'python3', 'last_activity': '2026-01-30T05:45:36.406880Z', 'execution_state': 'starting', 'connections': 0} 158s E 158s E + [] 158s E - [{'connections': 0, 158s E - 'execution_state': 'starting', 158s E - 'id': '7dda4e42-5167-435d-877d-7d24973dc63b', 158s E - 'last_activity': '2026-01-30T05:45:36.406880Z', 158s E - 'name': 'python3'}, 158s E - {'connections': 0, 158s E - 'execution_state': 'starting', 158s E - 'id': '873dab23-95dd-4619-94f0-ca06ab37da8e', 158s E - 'last_activity': '2026-01-30T05:45:36.429845Z', 158s E - 'name': 'python3'}] 158s 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 7dda4e42-5167-435d-877d-7d24973dc63b 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7dda4e42-5167-435d-877d-7d24973dc63b 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/7dda4e42-5167-435d-877d-7d24973dc63b (::1) 1.010000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 873dab23-95dd-4619-94f0-ca06ab37da8e 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 873dab23-95dd-4619-94f0-ca06ab37da8e 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/873dab23-95dd-4619-94f0-ca06ab37da8e (::1) 1.090000ms 158s ---------------------------- Captured log teardown ----------------------------- 158s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 713ad68f-6197-4168-ae6b-35115eeaa59f 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 7dda4e42-5167-435d-877d-7d24973dc63b 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5b4d0c3c-41bc-4e30-af2e-09d0b568ff3e 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f30403ea-b836-4af8-bd4e-c6c8c6258a79 158s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 158s __________________________ SessionAPITest.test_create __________________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/333106a6-23dd-43e1-a6dd-4870b1294bcc 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ------------------------------ Captured log setup ------------------------------ 158s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpk7wtnch3/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpk7wtnch3/etc/jupyter'] for config files 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpk7wtnch3/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpk7wtnch3/config 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpk7wtnch3/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpk7wtnch3/config 158s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpk7wtnch3/notebooks 158s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 158s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 158s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 158s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 158s WARNING NotebookApp:handlers.py:612 Forbidden 158s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.730000ms referer=None 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 158s from ipykernel import kernelapp as app 158s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 158s from .connect import * # noqa: F403 158s ^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 158s import json 158s File "", line 1360, in _find_and_load 158s File "", line 1322, in _find_and_load_unlocked 158s File "", line 1262, in _find_spec 158s File "", line 1556, in find_spec 158s File "", line 1530, in _get_spec 158s File "", line 1629, in find_spec 158s File "", line 152, in _path_stat 158s KeyboardInterrupt 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.380000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk7wtnch3/runtime/kernel-414f3534-08ed-4f97-ab20-14ffe2b006ed.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57875 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38201 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 414f3534-08ed-4f97-ab20-14ffe2b006ed, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpk7wtnch3/notebooks/foo'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.440000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.020000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/333106a6-23dd-43e1-a6dd-4870b1294bcc (::1) 2.870000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 414f3534-08ed-4f97-ab20-14ffe2b006ed 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 414f3534-08ed-4f97-ab20-14ffe2b006ed 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/333106a6-23dd-43e1-a6dd-4870b1294bcc (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/333106a6-23dd-43e1-a6dd-4870b1294bcc', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 158s yielded = self.gen.send(value) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/333106a6-23dd-43e1-a6dd-4870b1294bcc (::1) 7.620000ms referer=None 158s __________________ SessionAPITest.test_create_console_session __________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e00f2556-68aa-49db-a620-e3b1c735a291 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk7wtnch3/runtime/kernel-489cf2e3-dbd3-4c9a-9c30-13eb6dc1ebdb.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51609 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48511 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 489cf2e3-dbd3-4c9a-9c30-13eb6dc1ebdb, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpk7wtnch3/notebooks/foo'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.030000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.710000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 414f3534-08ed-4f97-ab20-14ffe2b006ed 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 414f3534-08ed-4f97-ab20-14ffe2b006ed 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/333106a6-23dd-43e1-a6dd-4870b1294bcc (::1) 2.860000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 489cf2e3-dbd3-4c9a-9c30-13eb6dc1ebdb 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 489cf2e3-dbd3-4c9a-9c30-13eb6dc1ebdb 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e00f2556-68aa-49db-a620-e3b1c735a291 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e00f2556-68aa-49db-a620-e3b1c735a291', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 158s yielded = self.gen.send(value) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e00f2556-68aa-49db-a620-e3b1c735a291 (::1) 7.980000ms referer=None 158s --------------------------- Captured stderr teardown --------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "/usr/lib/python3.13/glob.py", line 5, in 158s import re 158s File "/usr/lib/python3.13/re/__init__.py", line 126, in 158s from . import _compiler, _parser 158s KeyboardInterrupt 158s ____________________ SessionAPITest.test_create_deprecated _____________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/34ee2e65-3f59-4ba1-85b6-fe162c6bf396 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk7wtnch3/runtime/kernel-91664257-2c95-43b9-abde-321cff3e194b.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47079 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56603 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 91664257-2c95-43b9-abde-321cff3e194b, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpk7wtnch3/notebooks/foo'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 21.280000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 489cf2e3-dbd3-4c9a-9c30-13eb6dc1ebdb 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 489cf2e3-dbd3-4c9a-9c30-13eb6dc1ebdb 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e00f2556-68aa-49db-a620-e3b1c735a291 (::1) 2.820000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91664257-2c95-43b9-abde-321cff3e194b 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91664257-2c95-43b9-abde-321cff3e194b 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/34ee2e65-3f59-4ba1-85b6-fe162c6bf396 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/34ee2e65-3f59-4ba1-85b6-fe162c6bf396', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 158s yielded = self.gen.send(value) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/34ee2e65-3f59-4ba1-85b6-fe162c6bf396 (::1) 7.130000ms referer=None 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 158s from ._local import * 158s File "/usr/lib/python3.13/pathlib/_local.py", line 16, in 158s import grp 158s File "", line 1357, in _find_and_load 158s File "", line 421, in __exit__ 158s File "", line 378, in release 158s KeyboardInterrupt 158s ___________________ SessionAPITest.test_create_file_session ____________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fffbc692-fcd5-4652-94b3-482a461b9b1e 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk7wtnch3/runtime/kernel-d32bd172-9b75-4c49-b022-6854ff875681.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48365 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60701 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: d32bd172-9b75-4c49-b022-6854ff875681, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpk7wtnch3/notebooks/foo'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.710000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.600000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 91664257-2c95-43b9-abde-321cff3e194b 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 91664257-2c95-43b9-abde-321cff3e194b 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/34ee2e65-3f59-4ba1-85b6-fe162c6bf396 (::1) 3.070000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d32bd172-9b75-4c49-b022-6854ff875681 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d32bd172-9b75-4c49-b022-6854ff875681 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fffbc692-fcd5-4652-94b3-482a461b9b1e (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fffbc692-fcd5-4652-94b3-482a461b9b1e', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 158s yielded = self.gen.send(value) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/fffbc692-fcd5-4652-94b3-482a461b9b1e (::1) 7.650000ms referer=None 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "/usr/lib/python3.13/glob.py", line 328, in 158s @functools.lru_cache(maxsize=512) 158s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 158s File "/usr/lib/python3.13/functools.py", line 544, in decorating_function 158s def decorating_function(user_function): 158s 158s KeyboardInterrupt 158s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 158s 158s self = 158s 158s def test_create_with_kernel_id(self): 158s # create a new kernel 158s r = self.request('POST', 'api/kernels') 158s r.raise_for_status() 158s kernel = r.json() 158s 158s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 158s self.assertEqual(resp.status_code, 201) 158s newsession = resp.json() 158s self.assertIn('id', newsession) 158s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 158s self.assertEqual(newsession['kernel']['id'], kernel['id']) 158s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 158s 158s sessions = self.sess_api.list().json() 158s > self.assertEqual(sessions, [newsession]) 158s E AssertionError: Lists differ: [{'id': 'fffbc692-fcd5-4652-94b3-482a461b9b1e', 'p[553 chars]ne}}] != [{'id': '6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3', 'p[279 chars]ne}}] 158s E 158s E First differing element 0: 158s E {'id': 'fffbc692-fcd5-4652-94b3-482a461b9b1e', 'p[218 chars]: 0}} 158s E {'id': '6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3', 'p[278 chars]one}} 158s E 158s E First list contains 1 additional elements. 158s E First extra element 1: 158s E {'id': '6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '897f1e5c-5b79-41fe-a41c-69b4d04d65e7', 'name': 'python3', 'last_activity': '2026-01-30T05:45:36.924565Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 158s E 158s E Diff is 830 characters long. Set self.maxDiff to None to see it. 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk7wtnch3/runtime/kernel-897f1e5c-5b79-41fe-a41c-69b4d04d65e7.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42963 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43071 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 897f1e5c-5b79-41fe-a41c-69b4d04d65e7, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.860000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.190000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.980000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.530000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d32bd172-9b75-4c49-b022-6854ff875681 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d32bd172-9b75-4c49-b022-6854ff875681 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fffbc692-fcd5-4652-94b3-482a461b9b1e (::1) 1.420000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 897f1e5c-5b79-41fe-a41c-69b4d04d65e7 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 897f1e5c-5b79-41fe-a41c-69b4d04d65e7 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 158s yielded = self.gen.send(value) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 158s from ._local import * 158s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 158s class PureWindowsPath(PurePath): 158s ...<7 lines>... 158s __slots__ = () 158s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 158s import ntpath 158s File "/usr/lib/python3.13/ntpath.py", line 514, in 158s from nt import _getfullpathname 158s File "", line 1360, in _find_and_load 158s File "", line 1322, in _find_and_load_unlocked 158s File "", line 1262, in _find_spec 158s File "", line 1556, in find_spec 158s File "", line 1530, in _get_spec 158s File "", line 1629, in find_spec 158s File "", line 152, in _path_stat 158s KeyboardInterrupt 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.090000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk7wtnch3/runtime/kernel-891bb47e-1414-47e4-a02e-a0c8dd00e65e.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54023 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58607 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 891bb47e-1414-47e4-a02e-a0c8dd00e65e, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.480000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 897f1e5c-5b79-41fe-a41c-69b4d04d65e7 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 897f1e5c-5b79-41fe-a41c-69b4d04d65e7 158s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 (::1) 1.880000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.540000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.830000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 891bb47e-1414-47e4-a02e-a0c8dd00e65e 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 891bb47e-1414-47e4-a02e-a0c8dd00e65e 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 158s yielded = self.gen.send(value) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 (::1) 8.740000ms referer=None 158s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.930000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk7wtnch3/runtime/kernel-1b52da53-fb42-4b38-be57-0dd4d3d4f066.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53561 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33097 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1b52da53-fb42-4b38-be57-0dd4d3d4f066, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpk7wtnch3/notebooks/foo'} 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 891bb47e-1414-47e4-a02e-a0c8dd00e65e 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 891bb47e-1414-47e4-a02e-a0c8dd00e65e 158s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 (::1) 18.170000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.860000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1b52da53-fb42-4b38-be57-0dd4d3d4f066 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1b52da53-fb42-4b38-be57-0dd4d3d4f066 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/6f3eaf7e-4ef0-4cce-a145-aed90e9f17e3', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 158s yielded = self.gen.send(value) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 158s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 158s stopper = ensure_async(km.shutdown_kernel(now, restart)) 158s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 158s return _runner_map[name].run(inner) 158s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 158s return fut.result(None) 158s ~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 158s return self.__get_result() 158s ~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 158s raise self._exception 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "/usr/lib/python3.13/glob.py", line 5, in 158s import re 158s File "/usr/lib/python3.13/re/__init__.py", line 381, in 158s import copyreg 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1115, in get_code 158s File "", line 1214, in get_data 158s KeyboardInterrupt 158s _______________________ AsyncSessionAPITest.test_create ________________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/df80e6e7-be88-4626-8d9a-4217d5128191 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ------------------------------ Captured log setup ------------------------------ 158s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpk8mk89qi/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpk8mk89qi/etc/jupyter'] for config files 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpk8mk89qi/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpk8mk89qi/config 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpk8mk89qi/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 158s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpk8mk89qi/config 158s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpk8mk89qi/notebooks 158s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 158s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 158s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 158s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 158s WARNING NotebookApp:handlers.py:612 Forbidden 158s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.650000ms referer=None 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.110000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk8mk89qi/runtime/kernel-fed1e41d-17e1-4e52-9fc6-cce4dfd4e7bd.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50645 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45613 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: fed1e41d-17e1-4e52-9fc6-cce4dfd4e7bd, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpk8mk89qi/notebooks/foo'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.590000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.270000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/df80e6e7-be88-4626-8d9a-4217d5128191 (::1) 1.000000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.590000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fed1e41d-17e1-4e52-9fc6-cce4dfd4e7bd 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fed1e41d-17e1-4e52-9fc6-cce4dfd4e7bd 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/df80e6e7-be88-4626-8d9a-4217d5128191 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/df80e6e7-be88-4626-8d9a-4217d5128191', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/df80e6e7-be88-4626-8d9a-4217d5128191 (::1) 6.840000ms referer=None 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 158s from ipykernel import kernelapp as app 158s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 158s from ._version import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 13, in 158s parts: list[object] = [int(match[part]) for part in ["major", "minor", "patch"]] 158s ~~~^^^^^^^^^^^^^ 158s KeyboardInterrupt 158s _______________ AsyncSessionAPITest.test_create_console_session ________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2286bb32-cf3a-49f7-bf92-5b5401660e69 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk8mk89qi/runtime/kernel-1c43516e-0d71-416d-b12b-ddd2bac87385.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43755 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50911 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1c43516e-0d71-416d-b12b-ddd2bac87385, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpk8mk89qi/notebooks/foo'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.440000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fed1e41d-17e1-4e52-9fc6-cce4dfd4e7bd 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fed1e41d-17e1-4e52-9fc6-cce4dfd4e7bd 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/df80e6e7-be88-4626-8d9a-4217d5128191 (::1) 2.540000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c43516e-0d71-416d-b12b-ddd2bac87385 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c43516e-0d71-416d-b12b-ddd2bac87385 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 158s gc.collect() 158s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2286bb32-cf3a-49f7-bf92-5b5401660e69 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2286bb32-cf3a-49f7-bf92-5b5401660e69', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/2286bb32-cf3a-49f7-bf92-5b5401660e69 (::1) 6.700000ms referer=None 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 158s from ._local import * 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/861a72f8-7f63-4070-8f0b-2901cfe66396 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk8mk89qi/runtime/kernel-48952746-7a00-4b3d-b2c9-611782f502fd.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51199 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40559 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 48952746-7a00-4b3d-b2c9-611782f502fd, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpk8mk89qi/notebooks/foo'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.570000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.880000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1c43516e-0d71-416d-b12b-ddd2bac87385 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1c43516e-0d71-416d-b12b-ddd2bac87385 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2286bb32-cf3a-49f7-bf92-5b5401660e69 (::1) 2.490000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 48952746-7a00-4b3d-b2c9-611782f502fd 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 48952746-7a00-4b3d-b2c9-611782f502fd 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/861a72f8-7f63-4070-8f0b-2901cfe66396 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/861a72f8-7f63-4070-8f0b-2901cfe66396', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 158s from ._local import * 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s _________________ AsyncSessionAPITest.test_create_file_session _________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a3896f5e-5d68-45a4-a8b5-5e487e54ce98 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk8mk89qi/runtime/kernel-a9f9019f-a5b4-448d-b9ec-5e2f4a5eb657.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44345 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34029 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: a9f9019f-a5b4-448d-b9ec-5e2f4a5eb657, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpk8mk89qi/notebooks/foo'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.350000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.580000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 48952746-7a00-4b3d-b2c9-611782f502fd 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 48952746-7a00-4b3d-b2c9-611782f502fd 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/861a72f8-7f63-4070-8f0b-2901cfe66396 (::1) 1.010000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9f9019f-a5b4-448d-b9ec-5e2f4a5eb657 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9f9019f-a5b4-448d-b9ec-5e2f4a5eb657 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a3896f5e-5d68-45a4-a8b5-5e487e54ce98 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a3896f5e-5d68-45a4-a8b5-5e487e54ce98', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a3896f5e-5d68-45a4-a8b5-5e487e54ce98 (::1) 6.870000ms referer=None 158s --------------------------- Captured stderr teardown --------------------------- 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 158s from ._local import * 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 158s 158s self = 158s 158s def test_create_with_kernel_id(self): 158s # create a new kernel 158s r = self.request('POST', 'api/kernels') 158s r.raise_for_status() 158s kernel = r.json() 158s 158s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 158s self.assertEqual(resp.status_code, 201) 158s newsession = resp.json() 158s self.assertIn('id', newsession) 158s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 158s self.assertEqual(newsession['kernel']['id'], kernel['id']) 158s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 158s 158s sessions = self.sess_api.list().json() 158s > self.assertEqual(sessions, [newsession]) 158s E AssertionError: Lists differ: [{'id': 'a3896f5e-5d68-45a4-a8b5-5e487e54ce98', 'p[553 chars]ne}}] != [{'id': '60a27a1a-20ec-4921-84f4-643b15ac1010', 'p[279 chars]ne}}] 158s E 158s E First differing element 0: 158s E {'id': 'a3896f5e-5d68-45a4-a8b5-5e487e54ce98', 'p[218 chars]: 0}} 158s E {'id': '60a27a1a-20ec-4921-84f4-643b15ac1010', 'p[278 chars]one}} 158s E 158s E First list contains 1 additional elements. 158s E First extra element 1: 158s E {'id': '60a27a1a-20ec-4921-84f4-643b15ac1010', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '62444595-de67-4372-91c3-14a071bf33b9', 'name': 'python3', 'last_activity': '2026-01-30T05:45:37.530122Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 158s E 158s E Diff is 830 characters long. Set self.maxDiff to None to see it. 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 158s ----------------------------- Captured stderr call ----------------------------- 158s Traceback (most recent call last): 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk8mk89qi/runtime/kernel-62444595-de67-4372-91c3-14a071bf33b9.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33617 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55189 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 62444595-de67-4372-91c3-14a071bf33b9, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.950000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 3.830000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a9f9019f-a5b4-448d-b9ec-5e2f4a5eb657 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a9f9019f-a5b4-448d-b9ec-5e2f4a5eb657 158s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a3896f5e-5d68-45a4-a8b5-5e487e54ce98 (::1) 2.620000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62444595-de67-4372-91c3-14a071bf33b9 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62444595-de67-4372-91c3-14a071bf33b9 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.900000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk8mk89qi/runtime/kernel-662349c2-a06e-4dc7-bce3-c587d750f814.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58277 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40507 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 662349c2-a06e-4dc7-bce3-c587d750f814, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.460000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62444595-de67-4372-91c3-14a071bf33b9 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62444595-de67-4372-91c3-14a071bf33b9 158s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 (::1) 1.360000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.570000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.870000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 662349c2-a06e-4dc7-bce3-c587d750f814 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 662349c2-a06e-4dc7-bce3-c587d750f814 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s ERROR NotebookApp:log.py:55 { 158s "Host": "localhost:12341", 158s "Accept": "*/*", 158s "User-Agent": "python-requests/2.32.5" 158s } 158s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 (::1) 6.720000ms referer=None 158s --------------------------- Captured stderr teardown --------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "/usr/lib/python3.13/glob.py", line 5, in 158s import re 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1152, in get_code 158s File "", line 781, in _compile_bytecode 158s KeyboardInterrupt 158s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 158s 158s @self.addCleanup 158s def cleanup_sessions(): 158s for session in self.sess_api.list().json(): 158s > self.sess_api.delete(session['id']) 158s 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 158s return self._req('DELETE', id) 158s ^^^^^^^^^^^^^^^^^^^^^^^ 158s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 158s response.raise_for_status() 158s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 158s 158s self = 158s 158s def raise_for_status(self): 158s """Raises :class:`HTTPError`, if one occurred.""" 158s 158s http_error_msg = "" 158s if isinstance(self.reason, bytes): 158s # We attempt to decode utf-8 first because some servers 158s # choose to localize their reason strings. If the string 158s # isn't utf-8, we fall back to iso-8859-1 for all other 158s # encodings. (See PR #3538) 158s try: 158s reason = self.reason.decode("utf-8") 158s except UnicodeDecodeError: 158s reason = self.reason.decode("iso-8859-1") 158s else: 158s reason = self.reason 158s 158s if 400 <= self.status_code < 500: 158s http_error_msg = ( 158s f"{self.status_code} Client Error: {reason} for url: {self.url}" 158s ) 158s 158s elif 500 <= self.status_code < 600: 158s http_error_msg = ( 158s f"{self.status_code} Server Error: {reason} for url: {self.url}" 158s ) 158s 158s if http_error_msg: 158s > raise HTTPError(http_error_msg, response=self) 158s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 158s 158s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 158s ------------------------------ Captured log call ------------------------------- 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.050000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 158s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpk8mk89qi/runtime/kernel-532022d3-4ecb-46ab-a5bf-0c5d0ad2e2ec.json'] 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45809 158s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45865 158s INFO NotebookApp:kernelmanager.py:179 Kernel started: 532022d3-4ecb-46ab-a5bf-0c5d0ad2e2ec, name: python3 158s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpk8mk89qi/notebooks/foo'} 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 662349c2-a06e-4dc7-bce3-c587d750f814 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 662349c2-a06e-4dc7-bce3-c587d750f814 158s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 (::1) 16.050000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 158s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 158s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 532022d3-4ecb-46ab-a5bf-0c5d0ad2e2ec 158s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 532022d3-4ecb-46ab-a5bf-0c5d0ad2e2ec 158s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010 (::1) 158s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/60a27a1a-20ec-4921-84f4-643b15ac1010', version='HTTP/1.1', remote_ip='::1') 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 158s result = await result 158s ^^^^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 158s future.result() 158s ~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 158s yield maybe_future(sm.delete_session(session_id)) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 158s yielded = self.gen.throw(exc) 158s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 158s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 158s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 158s value = future.result() 158s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 158s raise self._exception.with_traceback(self._exception_tb) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 158s result = coro.send(None) 158s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 158s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 158s raise km.ready.exception() # type: ignore[misc] 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 158s await kernel_awaitable 158s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 158s result = await obj 158s ^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 158s raise e 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 158s out = await method(self, *args, **kwargs) 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 158s await self._async_finish_shutdown(restart=restart) 158s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 158s await asyncio.wait_for( 158s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 158s ) 158s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 158s async with timeouts.timeout(timeout): 158s ~~~~~~~~~~~~~~~~^^^^^^^^^ 158s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 158s raise RuntimeError("Timeout should be used inside a task") 158s RuntimeError: Timeout should be used inside a task 158s WARNING NotebookApp:handlers.py:612 Unhandled error 158s --------------------------- Captured stderr teardown --------------------------- 158s Traceback (most recent call last): 158s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 158s return _run_code(code, main_globals, None, 158s "__main__", mod_spec) 158s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 158s exec(code, run_globals) 158s ~~~~^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 158s from pathlib import Path 158s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 158s from ._abc import * 158s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 158s from glob import _Globber, _no_recurse_symlinks 158s File "", line 1360, in _find_and_load 158s File "", line 1331, in _find_and_load_unlocked 158s File "", line 935, in _load_unlocked 158s File "", line 1019, in exec_module 158s File "", line 1115, in get_code 158s File "", line 1214, in get_data 158s KeyboardInterrupt 158s =============================== warnings summary =============================== 158s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 158s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 158s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 158s return LooseVersion(v) >= LooseVersion(check) 158s 158s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 158s services/kernels/tests/test_kernels_api.py: 72 warnings 158s services/sessions/tests/test_sessions_api.py: 96 warnings 158s /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). 158s dt = unaware(*args, **kwargs) 158s 158s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 158s /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 158s pytestmark = pytest.mark.integration_tests 158s 158s services/kernels/tests/test_kernels_api.py: 6 warnings 158s services/sessions/tests/test_sessions_api.py: 6 warnings 158s /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 158s policy = events.get_event_loop_policy() 158s 158s services/kernels/tests/test_kernels_api.py: 24 warnings 158s services/sessions/tests/test_sessions_api.py: 19 warnings 158s /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 158s loop = events.get_event_loop_policy().get_event_loop() 158s 158s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 158s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 158s loop.make_current() 158s 158s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 158s =========================== short test summary info ============================ 158s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 158s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 158s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 158s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 158s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 158s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 158s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 158s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 158s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 158s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 158s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 158s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 158s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 158s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 158s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 158s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 158s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 158s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 158s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 158s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 158s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 158s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 158s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 158s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 158s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 158s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 158s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 158s ===== 23 failed, 2 passed, 305 deselected, 228 warnings, 4 errors in 5.74s ===== 159s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 159s *** 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 162s ============================= test session starts ============================== 162s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 162s rootdir: /tmp/autopkgtest.CeZch0/autopkgtest_tmp 162s plugins: typeguard-4.4.4 162s collected 330 items / 307 deselected / 23 selected 162s run-last-failure: rerun previous 23 failures 162s 164s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 165s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 165s 165s ==================================== ERRORS ==================================== 165s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 165s 165s self = 165s 165s def tearDown(self): 165s for k in self.kern_api.list().json(): 165s > self.kern_api.shutdown(k['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/8798751a-576c-4aab-8813-fa854f5cbb43 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 165s from ._abc import * 165s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 165s import functools 165s File "/usr/lib/python3.13/functools.py", line 18, in 165s from collections import namedtuple 165s File "/usr/lib/python3.13/collections/__init__.py", line 83, in 165s class _Link(object): 165s File "/usr/lib/python3.13/collections/__init__.py", line 83, in _Link 165s class _Link(object): 165s KeyboardInterrupt 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 165s from ipykernel import kernelapp as app 165s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 165s from .connect import * # noqa: F403 165s ^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 165s import jupyter_client 165s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 165s from .asynchronous import AsyncKernelClient 165s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 165s from .client import AsyncKernelClient # noqa 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 165s import zmq.asyncio 165s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 165s import asyncio 165s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 165s from .base_events import * 165s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 165s from . import coroutines 165s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 165s import inspect 165s File "/usr/lib/python3.13/inspect.py", line 145, in 165s import ast 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1152, in get_code 165s File "", line 781, in _compile_bytecode 165s KeyboardInterrupt 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe06mp4il/runtime/kernel-8798751a-576c-4aab-8813-fa854f5cbb43.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45839 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57259 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8798751a-576c-4aab-8813-fa854f5cbb43, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.820000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.580000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe06mp4il/runtime/kernel-ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39751 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42739 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.860000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78 165s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78/interrupt (::1) 1.190000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 165s yield maybe_future(km.restart_kernel(kernel_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 165s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 165s await ensure_async(kernel.restart_kernel(now=now)) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 165s await self._async_shutdown_kernel(now=now, restart=True) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78/restart (::1) 10.490000ms referer=None 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.490000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8798751a-576c-4aab-8813-fa854f5cbb43 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8798751a-576c-4aab-8813-fa854f5cbb43 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8798751a-576c-4aab-8813-fa854f5cbb43 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8798751a-576c-4aab-8813-fa854f5cbb43', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 165s yielded = ctx_run(next, result) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 165s yield maybe_future(km.shutdown_kernel(kernel_id)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8798751a-576c-4aab-8813-fa854f5cbb43 (::1) 7.340000ms referer=None 165s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 165s 165s self = 165s 165s def tearDown(self): 165s for k in self.kern_api.list().json(): 165s > self.kern_api.shutdown(k['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ecada7df-8f3b-4599-b7bd-448f76707a4d 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 165s from ._abc import * 165s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 165s import functools 165s File "/usr/lib/python3.13/functools.py", line 455, in 165s _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) 165s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 165s __new__ = eval(code, namespace) 165s File "", line 0, in 165s KeyboardInterrupt 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptufdu62u/runtime/kernel-ecada7df-8f3b-4599-b7bd-448f76707a4d.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33333 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53795 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: ecada7df-8f3b-4599-b7bd-448f76707a4d, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.980000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.940000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptufdu62u/runtime/kernel-24930a8f-9d10-4166-92f8-4fb7f6f186ed.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54609 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45983 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24930a8f-9d10-4166-92f8-4fb7f6f186ed, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.690000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.220000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 24930a8f-9d10-4166-92f8-4fb7f6f186ed 165s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/24930a8f-9d10-4166-92f8-4fb7f6f186ed/interrupt (::1) 1.110000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 165s yield maybe_future(km.restart_kernel(kernel_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 165s result = coro.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 165s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 165s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 165s yield self # This tells Task to wait for completion. 165s ^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 165s await ensure_async(kernel.restart_kernel(now=now)) 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 165s await self._async_shutdown_kernel(now=now, restart=True) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/24930a8f-9d10-4166-92f8-4fb7f6f186ed/restart (::1) 8.250000ms referer=None 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.980000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ecada7df-8f3b-4599-b7bd-448f76707a4d 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ecada7df-8f3b-4599-b7bd-448f76707a4d 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ecada7df-8f3b-4599-b7bd-448f76707a4d (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ecada7df-8f3b-4599-b7bd-448f76707a4d', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 165s yield maybe_future(km.shutdown_kernel(kernel_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ecada7df-8f3b-4599-b7bd-448f76707a4d (::1) 6.270000ms referer=None 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 165s from ipykernel import kernelapp as app 165s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 165s from .connect import * # noqa: F403 165s ^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 165s import jupyter_client 165s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 165s from .asynchronous import AsyncKernelClient 165s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 165s from .client import AsyncKernelClient # noqa 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 165s import zmq.asyncio 165s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 165s import asyncio 165s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 165s from .base_events import * 165s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 165s import concurrent.futures 165s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 165s from concurrent.futures._base import (FIRST_COMPLETED, 165s ...<9 lines>... 165s as_completed) 165s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 165s import logging 165s File "/usr/lib/python3.13/logging/__init__.py", line 444, in 165s class PercentStyle(object): 165s ...<29 lines>... 165s raise ValueError('Formatting field not found in record: %s' % e) 165s File "/usr/lib/python3.13/logging/__init__.py", line 449, in PercentStyle 165s validation_pattern = re.compile(r'%\(\w+\)[#0+ -]*(\*|\d+)?(\.(\*|\d+))?[diouxefgcrsa%]', re.I) 165s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 165s return _compile(pattern, flags) 165s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 165s p = _compiler.compile(pattern, flags) 165s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 165s code = _code(p, flags) 165s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 165s _compile(code, p.data, flags) 165s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 165s _compile(code, av[2], flags) 165s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/re/_compiler.py", line 86, in _compile 165s charset, hascased = _optimize_charset(av, iscased, tolower, fixes) 165s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/re/_compiler.py", line 342, in _optimize_charset 165s data = _mk_bitmap(charmap) 165s File "/usr/lib/python3.13/re/_compiler.py", line 391, in _mk_bitmap 165s return [_int(s[i - _CODEBITS: i], 2) 165s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 165s KeyboardInterrupt 165s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 165s from ipykernel import kernelapp as app 165s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 165s from .connect import * # noqa: F403 165s ^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 165s from typing import TYPE_CHECKING, Any 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1152, in get_code 165s File "", line 781, in _compile_bytecode 165s KeyboardInterrupt 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu1i93w3x/runtime/kernel-8da8561b-c1b5-4948-b989-61a35340ce1c.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48337 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41545 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8da8561b-c1b5-4948-b989-61a35340ce1c, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.920000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.390000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.160000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12167415-b27d-4db6-b691-f6f630eefff1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12167415-b27d-4db6-b691-f6f630eefff1 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/996b8c32-a1cf-411b-9e85-351e412817e0 (::1) 2.330000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8da8561b-c1b5-4948-b989-61a35340ce1c 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8da8561b-c1b5-4948-b989-61a35340ce1c 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 165s yielded = self.gen.send(value) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 (::1) 9.030000ms referer=None 165s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpng1o8vnb/runtime/kernel-74390d6a-eba3-4e9a-a48a-34948ab6d458.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44483 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39059 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 74390d6a-eba3-4e9a-a48a-34948ab6d458, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.470000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.090000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.500000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3192a807-030e-457d-8b93-f960df9e711b 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3192a807-030e-457d-8b93-f960df9e711b 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2ba7c5f8-9587-4137-9414-4216b6e08d9e (::1) 2.330000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74390d6a-eba3-4e9a-a48a-34948ab6d458 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74390d6a-eba3-4e9a-a48a-34948ab6d458 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc (::1) 7.700000ms referer=None 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 165s from ipykernel import kernelapp as app 165s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 165s from .connect import * # noqa: F403 165s ^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 165s from subprocess import PIPE, Popen 165s File "/usr/lib/python3.13/subprocess.py", line 46, in 165s import locale 165s File "/usr/lib/python3.13/locale.py", line 180, in 165s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 165s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 165s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 165s return _compile(pattern, flags) 165s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 165s p = _compiler.compile(pattern, flags) 165s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 165s code = _code(p, flags) 165s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 165s _compile(code, p.data, flags) 165s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 165s _compile(code, av[2], flags) 165s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 165s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 165s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 165s _compile(code, av[2], flags) 165s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 165s emit(ANY) 165s ~~~~^^^^^ 165s KeyboardInterrupt 165s =================================== FAILURES =================================== 165s ______________________ KernelAPITest.test_default_kernel _______________________ 165s 165s self = 165s 165s def tearDown(self): 165s for k in self.kern_api.list().json(): 165s > self.kern_api.shutdown(k['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a0712b36-b4bc-4901-a1eb-ae707daf18f1 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ------------------------------ Captured log setup ------------------------------ 165s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpe06mp4il/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpe06mp4il/etc/jupyter'] for config files 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpe06mp4il/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpe06mp4il/config 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpe06mp4il/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpe06mp4il/config 165s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpe06mp4il/notebooks 165s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 165s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 165s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 165s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 165s WARNING NotebookApp:handlers.py:612 Forbidden 165s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 1.040000ms referer=None 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 165s from ._local import * 165s File "", line 1360, in _find_and_load 165s File "", line 1322, in _find_and_load_unlocked 165s File "", line 1262, in _find_spec 165s File "", line 1556, in find_spec 165s File "", line 1530, in _get_spec 165s File "", line 1662, in find_spec 165s File "", line 166, in _path_isfile 165s File "", line 158, in _path_is_mode_type 165s File "", line 152, in _path_stat 165s KeyboardInterrupt 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe06mp4il/runtime/kernel-a0712b36-b4bc-4901-a1eb-ae707daf18f1.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56357 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57885 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: a0712b36-b4bc-4901-a1eb-ae707daf18f1, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 53.510000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.100000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0712b36-b4bc-4901-a1eb-ae707daf18f1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0712b36-b4bc-4901-a1eb-ae707daf18f1 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a0712b36-b4bc-4901-a1eb-ae707daf18f1 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a0712b36-b4bc-4901-a1eb-ae707daf18f1', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 165s yielded = ctx_run(next, result) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 165s yield maybe_future(km.shutdown_kernel(kernel_id)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ______________________ KernelAPITest.test_kernel_handler _______________________ 165s 165s self = 165s 165s def test_kernel_handler(self): 165s # GET kernel with given id 165s kid = self.kern_api.start().json()['id'] 165s r = self.kern_api.get(kid) 165s kern1 = r.json() 165s self.assertEqual(r.status_code, 200) 165s assert isinstance(kern1, dict) 165s self.assertIn('id', kern1) 165s self.assertEqual(kern1['id'], kid) 165s 165s # Request a bad kernel id and check that a JSON 165s # message is returned! 165s bad_id = '111-111-111-111-111' 165s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 165s self.kern_api.get(bad_id) 165s 165s # DELETE kernel with id 165s > r = self.kern_api.shutdown(kid) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6857ebfd-93b1-4083-9d4c-ec1a794b7634 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 165s from ._abc import * 165s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 165s from glob import _Globber, _no_recurse_symlinks 165s File "/usr/lib/python3.13/glob.py", line 5, in 165s import re 165s File "/usr/lib/python3.13/re/__init__.py", line 126, in 165s from . import _compiler, _parser 165s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 165s from . import _parser 165s File "/usr/lib/python3.13/re/_parser.py", line 15, in 165s from ._constants import * 165s File "", line 1360, in _find_and_load 165s File "", line 1322, in _find_and_load_unlocked 165s File "", line 1262, in _find_spec 165s File "", line 984, in find_spec 165s KeyboardInterrupt 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe06mp4il/runtime/kernel-6857ebfd-93b1-4083-9d4c-ec1a794b7634.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53149 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38099 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6857ebfd-93b1-4083-9d4c-ec1a794b7634, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.570000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6857ebfd-93b1-4083-9d4c-ec1a794b7634 (::1) 2.630000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s 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 165s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 165s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.960000ms referer=None 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6857ebfd-93b1-4083-9d4c-ec1a794b7634 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6857ebfd-93b1-4083-9d4c-ec1a794b7634 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6857ebfd-93b1-4083-9d4c-ec1a794b7634 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6857ebfd-93b1-4083-9d4c-ec1a794b7634', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 165s yielded = ctx_run(next, result) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 165s yield maybe_future(km.shutdown_kernel(kernel_id)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6857ebfd-93b1-4083-9d4c-ec1a794b7634 (::1) 8.510000ms referer=None 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a0712b36-b4bc-4901-a1eb-ae707daf18f1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a0712b36-b4bc-4901-a1eb-ae707daf18f1 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a0712b36-b4bc-4901-a1eb-ae707daf18f1 (::1) 2.790000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6857ebfd-93b1-4083-9d4c-ec1a794b7634 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6857ebfd-93b1-4083-9d4c-ec1a794b7634 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6857ebfd-93b1-4083-9d4c-ec1a794b7634 (::1) 1.610000ms 165s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 165s 165s self = 165s 165s def test_main_kernel_handler(self): 165s # POST request 165s r = self.kern_api.start() 165s kern1 = r.json() 165s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 165s self.assertEqual(r.status_code, 201) 165s self.assertIsInstance(kern1, dict) 165s 165s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 165s expected_csp = '; '.join([ 165s "frame-ancestors 'self'", 165s 'report-uri ' + report_uri, 165s "default-src 'none'" 165s ]) 165s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 165s 165s # GET request 165s r = self.kern_api.list() 165s self.assertEqual(r.status_code, 200) 165s assert isinstance(r.json(), list) 165s self.assertEqual(r.json()[0]['id'], kern1['id']) 165s self.assertEqual(r.json()[0]['name'], kern1['name']) 165s 165s # create another kernel and check that they both are added to the 165s # list of kernels from a GET request 165s kern2 = self.kern_api.start().json() 165s assert isinstance(kern2, dict) 165s r = self.kern_api.list() 165s kernels = r.json() 165s self.assertEqual(r.status_code, 200) 165s assert isinstance(kernels, list) 165s self.assertEqual(len(kernels), 2) 165s 165s # Interrupt a kernel 165s r = self.kern_api.interrupt(kern2['id']) 165s self.assertEqual(r.status_code, 204) 165s 165s # Restart a kernel 165s > r = self.kern_api.restart(kern2['id']) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 165s return self._req('POST', url_path_join(id, 'restart')) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78/restart 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 165s from ._abc import * 165s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 165s import functools 165s File "/usr/lib/python3.13/functools.py", line 18, in 165s from collections import namedtuple 165s File "/usr/lib/python3.13/collections/__init__.py", line 83, in 165s class _Link(object): 165s File "/usr/lib/python3.13/collections/__init__.py", line 83, in _Link 165s class _Link(object): 165s KeyboardInterrupt 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 165s from ipykernel import kernelapp as app 165s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 165s from .connect import * # noqa: F403 165s ^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 165s import jupyter_client 165s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 165s from .asynchronous import AsyncKernelClient 165s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 165s from .client import AsyncKernelClient # noqa 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 165s import zmq.asyncio 165s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 165s import asyncio 165s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 165s from .base_events import * 165s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 165s from . import coroutines 165s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 165s import inspect 165s File "/usr/lib/python3.13/inspect.py", line 145, in 165s import ast 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1152, in get_code 165s File "", line 781, in _compile_bytecode 165s KeyboardInterrupt 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe06mp4il/runtime/kernel-8798751a-576c-4aab-8813-fa854f5cbb43.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45839 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57259 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8798751a-576c-4aab-8813-fa854f5cbb43, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.820000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.580000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpe06mp4il/runtime/kernel-ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39751 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42739 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.860000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.850000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78 165s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78/interrupt (::1) 1.190000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 165s yield maybe_future(km.restart_kernel(kernel_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 165s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 165s await ensure_async(kernel.restart_kernel(now=now)) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 165s await self._async_shutdown_kernel(now=now, restart=True) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78/restart (::1) 10.490000ms referer=None 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.490000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8798751a-576c-4aab-8813-fa854f5cbb43 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8798751a-576c-4aab-8813-fa854f5cbb43 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/8798751a-576c-4aab-8813-fa854f5cbb43 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/8798751a-576c-4aab-8813-fa854f5cbb43', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 165s yielded = ctx_run(next, result) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 165s yield maybe_future(km.shutdown_kernel(kernel_id)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/8798751a-576c-4aab-8813-fa854f5cbb43 (::1) 7.340000ms referer=None 165s ________________________ KernelAPITest.test_no_kernels _________________________ 165s 165s self = 165s 165s def test_no_kernels(self): 165s """Make sure there are no kernels running at the start""" 165s kernels = self.kern_api.list().json() 165s > self.assertEqual(kernels, []) 165s E AssertionError: Lists differ: [{'id': '8798751a-576c-4aab-8813-fa854f5cb[281 chars]: 0}] != [] 165s E 165s E First list contains 2 additional elements. 165s E First extra element 0: 165s E {'id': '8798751a-576c-4aab-8813-fa854f5cbb43', 'name': 'python3', 'last_activity': '2026-01-30T05:45:42.437340Z', 'execution_state': 'starting', 'connections': 0} 165s E 165s E + [] 165s E - [{'connections': 0, 165s E - 'execution_state': 'starting', 165s E - 'id': '8798751a-576c-4aab-8813-fa854f5cbb43', 165s E - 'last_activity': '2026-01-30T05:45:42.437340Z', 165s E - 'name': 'python3'}, 165s E - {'connections': 0, 165s E - 'execution_state': 'starting', 165s E - 'id': 'ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78', 165s E - 'last_activity': '2026-01-30T05:45:42.461732Z', 165s E - 'name': 'python3'}] 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.760000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8798751a-576c-4aab-8813-fa854f5cbb43 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8798751a-576c-4aab-8813-fa854f5cbb43 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/8798751a-576c-4aab-8813-fa854f5cbb43 (::1) 1.080000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ea7cd092-8ef5-48f9-b2f7-6a31a8c40f78 (::1) 1.200000ms 165s ---------------------------- Captured log teardown ----------------------------- 165s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 165s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 165s _____________________ AsyncKernelAPITest.test_connections ______________________ 165s 165s self = 165s 165s def tearDown(self): 165s for k in self.kern_api.list().json(): 165s > self.kern_api.shutdown(k['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ------------------------------ Captured log setup ------------------------------ 165s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmptufdu62u/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmptufdu62u/etc/jupyter'] for config files 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptufdu62u/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmptufdu62u/config 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptufdu62u/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmptufdu62u/config 165s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmptufdu62u/notebooks 165s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 165s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 165s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 165s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 165s WARNING NotebookApp:handlers.py:612 Forbidden 165s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.760000ms referer=None 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptufdu62u/runtime/kernel-37ed62f7-c636-431a-b0d2-2dc038290a3d.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38669 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49045 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 37ed62f7-c636-431a-b0d2-2dc038290a3d, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.060000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d (::1) 0.780000ms 165s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d/channels 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 165s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47553 165s DEBUG NotebookApp:kernelmanager.py:423 activity on 37ed62f7-c636-431a-b0d2-2dc038290a3d: status (starting) 165s DEBUG NotebookApp:kernelmanager.py:423 activity on 37ed62f7-c636-431a-b0d2-2dc038290a3d: status (busy) 165s DEBUG NotebookApp:kernelmanager.py:423 activity on 37ed62f7-c636-431a-b0d2-2dc038290a3d: status (idle) 165s 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/'}]} 165s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 37ed62f7-c636-431a-b0d2-2dc038290a3d) to 5.4 (client). 165s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d/channels (::1) 534.770000ms 165s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d/channels 165s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49045 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47553 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38669 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39097 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47553 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38669 165s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 165s Setting websocket_ping_timeout=30000 165s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d (::1) 0.900000ms 165s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:kernelmanager.py:423 activity on 37ed62f7-c636-431a-b0d2-2dc038290a3d: status (busy) 165s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:kernelmanager.py:423 activity on 37ed62f7-c636-431a-b0d2-2dc038290a3d: status (busy) 165s DEBUG NotebookApp:kernelmanager.py:423 activity on 37ed62f7-c636-431a-b0d2-2dc038290a3d: status (idle) 165s DEBUG NotebookApp:kernelmanager.py:423 activity on 37ed62f7-c636-431a-b0d2-2dc038290a3d: status (idle) 165s DEBUG NotebookApp:handlers.py:579 Websocket closed 37ed62f7-c636-431a-b0d2-2dc038290a3d:b8997e77-c66ff5490151b8c9295982a4 165s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 37ed62f7-c636-431a-b0d2-2dc038290a3d:b8997e77-c66ff5490151b8c9295982a4 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 37ed62f7-c636-431a-b0d2-2dc038290a3d:iopub 165s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 37ed62f7-c636-431a-b0d2-2dc038290a3d:iopub 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 37ed62f7-c636-431a-b0d2-2dc038290a3d:iopub 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d (::1) 0.940000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d (::1) 0.870000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 37ed62f7-c636-431a-b0d2-2dc038290a3d:b8997e77-c66ff5490151b8c9295982a4 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 165s yield maybe_future(km.shutdown_kernel(kernel_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d (::1) 9.110000ms referer=None 165s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 165s 165s self = 165s 165s def tearDown(self): 165s for k in self.kern_api.list().json(): 165s > self.kern_api.shutdown(k['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/94ab5be4-db6d-4cda-bc40-628e386aefb6 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptufdu62u/runtime/kernel-94ab5be4-db6d-4cda-bc40-628e386aefb6.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39877 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51649 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 94ab5be4-db6d-4cda-bc40-628e386aefb6, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.800000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/37ed62f7-c636-431a-b0d2-2dc038290a3d (::1) 3.190000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94ab5be4-db6d-4cda-bc40-628e386aefb6 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94ab5be4-db6d-4cda-bc40-628e386aefb6 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/94ab5be4-db6d-4cda-bc40-628e386aefb6 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/94ab5be4-db6d-4cda-bc40-628e386aefb6', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 165s yield maybe_future(km.shutdown_kernel(kernel_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s --------------------------- Captured stderr teardown --------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 165s from ._abc import * 165s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 165s from glob import _Globber, _no_recurse_symlinks 165s File "/usr/lib/python3.13/glob.py", line 5, in 165s import re 165s File "/usr/lib/python3.13/re/__init__.py", line 125, in 165s import enum 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1115, in get_code 165s File "", line 1215, in get_data 165s KeyboardInterrupt 165s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 165s 165s self = 165s 165s def test_kernel_handler(self): 165s # GET kernel with given id 165s kid = self.kern_api.start().json()['id'] 165s r = self.kern_api.get(kid) 165s kern1 = r.json() 165s self.assertEqual(r.status_code, 200) 165s assert isinstance(kern1, dict) 165s self.assertIn('id', kern1) 165s self.assertEqual(kern1['id'], kid) 165s 165s # Request a bad kernel id and check that a JSON 165s # message is returned! 165s bad_id = '111-111-111-111-111' 165s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 165s self.kern_api.get(bad_id) 165s 165s # DELETE kernel with id 165s > r = self.kern_api.shutdown(kid) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/dc33660c-988d-48b2-8179-458ad3ba86d8 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptufdu62u/runtime/kernel-dc33660c-988d-48b2-8179-458ad3ba86d8.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48055 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46981 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: dc33660c-988d-48b2-8179-458ad3ba86d8, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.580000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/dc33660c-988d-48b2-8179-458ad3ba86d8 (::1) 0.940000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s 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 165s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 165s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.990000ms referer=None 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc33660c-988d-48b2-8179-458ad3ba86d8 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc33660c-988d-48b2-8179-458ad3ba86d8 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/dc33660c-988d-48b2-8179-458ad3ba86d8 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/dc33660c-988d-48b2-8179-458ad3ba86d8', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 165s yield maybe_future(km.shutdown_kernel(kernel_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/dc33660c-988d-48b2-8179-458ad3ba86d8 (::1) 16.720000ms referer=None 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 5.950000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94ab5be4-db6d-4cda-bc40-628e386aefb6 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94ab5be4-db6d-4cda-bc40-628e386aefb6 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/94ab5be4-db6d-4cda-bc40-628e386aefb6 (::1) 3.880000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dc33660c-988d-48b2-8179-458ad3ba86d8 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc33660c-988d-48b2-8179-458ad3ba86d8 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/dc33660c-988d-48b2-8179-458ad3ba86d8 (::1) 0.990000ms 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 165s from ._abc import * 165s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 165s import functools 165s File "/usr/lib/python3.13/functools.py", line 18, in 165s from collections import namedtuple 165s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 165s from _collections import deque 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 946, in _load_unlocked 165s KeyboardInterrupt 165s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 165s 165s self = 165s 165s def test_main_kernel_handler(self): 165s # POST request 165s r = self.kern_api.start() 165s kern1 = r.json() 165s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 165s self.assertEqual(r.status_code, 201) 165s self.assertIsInstance(kern1, dict) 165s 165s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 165s expected_csp = '; '.join([ 165s "frame-ancestors 'self'", 165s 'report-uri ' + report_uri, 165s "default-src 'none'" 165s ]) 165s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 165s 165s # GET request 165s r = self.kern_api.list() 165s self.assertEqual(r.status_code, 200) 165s assert isinstance(r.json(), list) 165s self.assertEqual(r.json()[0]['id'], kern1['id']) 165s self.assertEqual(r.json()[0]['name'], kern1['name']) 165s 165s # create another kernel and check that they both are added to the 165s # list of kernels from a GET request 165s kern2 = self.kern_api.start().json() 165s assert isinstance(kern2, dict) 165s r = self.kern_api.list() 165s kernels = r.json() 165s self.assertEqual(r.status_code, 200) 165s assert isinstance(kernels, list) 165s self.assertEqual(len(kernels), 2) 165s 165s # Interrupt a kernel 165s r = self.kern_api.interrupt(kern2['id']) 165s self.assertEqual(r.status_code, 204) 165s 165s # Restart a kernel 165s > r = self.kern_api.restart(kern2['id']) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 165s return self._req('POST', url_path_join(id, 'restart')) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/24930a8f-9d10-4166-92f8-4fb7f6f186ed/restart 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 165s from ._abc import * 165s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 165s import functools 165s File "/usr/lib/python3.13/functools.py", line 455, in 165s _CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"]) 165s File "/usr/lib/python3.13/collections/__init__.py", line 444, in namedtuple 165s __new__ = eval(code, namespace) 165s File "", line 0, in 165s KeyboardInterrupt 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptufdu62u/runtime/kernel-ecada7df-8f3b-4599-b7bd-448f76707a4d.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33333 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53795 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: ecada7df-8f3b-4599-b7bd-448f76707a4d, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.980000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.940000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmptufdu62u/runtime/kernel-24930a8f-9d10-4166-92f8-4fb7f6f186ed.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54609 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45983 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24930a8f-9d10-4166-92f8-4fb7f6f186ed, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.690000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.220000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 24930a8f-9d10-4166-92f8-4fb7f6f186ed 165s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/24930a8f-9d10-4166-92f8-4fb7f6f186ed/interrupt (::1) 1.110000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 165s yield maybe_future(km.restart_kernel(kernel_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 165s result = coro.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 165s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 165s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 165s yield self # This tells Task to wait for completion. 165s ^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 165s await ensure_async(kernel.restart_kernel(now=now)) 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 165s await self._async_shutdown_kernel(now=now, restart=True) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/24930a8f-9d10-4166-92f8-4fb7f6f186ed/restart (::1) 8.250000ms referer=None 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.980000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ecada7df-8f3b-4599-b7bd-448f76707a4d 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ecada7df-8f3b-4599-b7bd-448f76707a4d 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ecada7df-8f3b-4599-b7bd-448f76707a4d (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ecada7df-8f3b-4599-b7bd-448f76707a4d', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 165s yield maybe_future(km.shutdown_kernel(kernel_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ecada7df-8f3b-4599-b7bd-448f76707a4d (::1) 6.270000ms referer=None 165s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 165s 165s self = 165s 165s def test_no_kernels(self): 165s """Make sure there are no kernels running at the start""" 165s kernels = self.kern_api.list().json() 165s > self.assertEqual(kernels, []) 165s E AssertionError: Lists differ: [{'id': 'ecada7df-8f3b-4599-b7bd-448f76707[281 chars]: 0}] != [] 165s E 165s E First list contains 2 additional elements. 165s E First extra element 0: 165s E {'id': 'ecada7df-8f3b-4599-b7bd-448f76707a4d', 'name': 'python3', 'last_activity': '2026-01-30T05:45:43.466776Z', 'execution_state': 'starting', 'connections': 0} 165s E 165s E + [] 165s E - [{'connections': 0, 165s E - 'execution_state': 'starting', 165s E - 'id': 'ecada7df-8f3b-4599-b7bd-448f76707a4d', 165s E - 'last_activity': '2026-01-30T05:45:43.466776Z', 165s E - 'name': 'python3'}, 165s E - {'connections': 0, 165s E - 'execution_state': 'starting', 165s E - 'id': '24930a8f-9d10-4166-92f8-4fb7f6f186ed', 165s E - 'last_activity': '2026-01-30T05:45:43.489606Z', 165s E - 'name': 'python3'}] 165s 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.870000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ecada7df-8f3b-4599-b7bd-448f76707a4d 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ecada7df-8f3b-4599-b7bd-448f76707a4d 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ecada7df-8f3b-4599-b7bd-448f76707a4d (::1) 0.950000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24930a8f-9d10-4166-92f8-4fb7f6f186ed 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24930a8f-9d10-4166-92f8-4fb7f6f186ed 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/24930a8f-9d10-4166-92f8-4fb7f6f186ed (::1) 1.080000ms 165s ---------------------------- Captured log teardown ----------------------------- 165s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ecada7df-8f3b-4599-b7bd-448f76707a4d 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94ab5be4-db6d-4cda-bc40-628e386aefb6 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dc33660c-988d-48b2-8179-458ad3ba86d8 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 37ed62f7-c636-431a-b0d2-2dc038290a3d 165s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 165s __________________________ SessionAPITest.test_create __________________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8aa5edd1-b13d-45f9-88a9-a763789e15e5 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ------------------------------ Captured log setup ------------------------------ 165s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpu1i93w3x/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpu1i93w3x/etc/jupyter'] for config files 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpu1i93w3x/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpu1i93w3x/config 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpu1i93w3x/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpu1i93w3x/config 165s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpu1i93w3x/notebooks 165s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 165s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 165s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 165s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 165s WARNING NotebookApp:handlers.py:612 Forbidden 165s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.720000ms referer=None 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.270000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu1i93w3x/runtime/kernel-3d1da138-9166-462b-b481-43233c89e3cf.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40189 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42967 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3d1da138-9166-462b-b481-43233c89e3cf, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu1i93w3x/notebooks/foo'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.770000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.950000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/8aa5edd1-b13d-45f9-88a9-a763789e15e5 (::1) 2.550000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.810000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d1da138-9166-462b-b481-43233c89e3cf 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d1da138-9166-462b-b481-43233c89e3cf 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8aa5edd1-b13d-45f9-88a9-a763789e15e5 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8aa5edd1-b13d-45f9-88a9-a763789e15e5', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 165s yielded = self.gen.send(value) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8aa5edd1-b13d-45f9-88a9-a763789e15e5 (::1) 9.940000ms referer=None 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 165s from ._local import * 165s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 165s class PureWindowsPath(PurePath): 165s ...<7 lines>... 165s __slots__ = () 165s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 165s import ntpath 165s File "/usr/lib/python3.13/ntpath.py", line 472, in 165s from nt import _path_normpath as normpath 165s File "", line 1357, in _find_and_load 165s File "", line 418, in __enter__ 165s File "", line 311, in acquire 165s File "", line 170, in __enter__ 165s File "", line 132, in setdefault 165s File "", line 75, in __new__ 165s KeyboardInterrupt 165s __________________ SessionAPITest.test_create_console_session __________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/010fa1fe-808c-46f5-bf9e-ff9ccbda14fa 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu1i93w3x/runtime/kernel-97a18934-16c6-42be-87e5-589159ad43e3.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35439 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39235 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 97a18934-16c6-42be-87e5-589159ad43e3, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu1i93w3x/notebooks/foo'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.570000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.040000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3d1da138-9166-462b-b481-43233c89e3cf 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3d1da138-9166-462b-b481-43233c89e3cf 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8aa5edd1-b13d-45f9-88a9-a763789e15e5 (::1) 1.460000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 97a18934-16c6-42be-87e5-589159ad43e3 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97a18934-16c6-42be-87e5-589159ad43e3 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/010fa1fe-808c-46f5-bf9e-ff9ccbda14fa (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/010fa1fe-808c-46f5-bf9e-ff9ccbda14fa', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 165s yielded = self.gen.send(value) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/010fa1fe-808c-46f5-bf9e-ff9ccbda14fa (::1) 8.630000ms referer=None 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 165s from ._local import * 165s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 165s import warnings 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1152, in get_code 165s File "", line 781, in _compile_bytecode 165s KeyboardInterrupt 165s ____________________ SessionAPITest.test_create_deprecated _____________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1213645a-960e-4e42-887e-777cb9449264 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu1i93w3x/runtime/kernel-2a2a49c0-ad61-451d-b2b9-748b11e635a3.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57125 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50357 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2a2a49c0-ad61-451d-b2b9-748b11e635a3, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu1i93w3x/notebooks/foo'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.620000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 97a18934-16c6-42be-87e5-589159ad43e3 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 97a18934-16c6-42be-87e5-589159ad43e3 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/010fa1fe-808c-46f5-bf9e-ff9ccbda14fa (::1) 2.570000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a2a49c0-ad61-451d-b2b9-748b11e635a3 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a2a49c0-ad61-451d-b2b9-748b11e635a3 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1213645a-960e-4e42-887e-777cb9449264 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1213645a-960e-4e42-887e-777cb9449264', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 165s yielded = self.gen.send(value) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1213645a-960e-4e42-887e-777cb9449264 (::1) 8.700000ms referer=None 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 165s from ._local import * 165s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 165s class PureWindowsPath(PurePath): 165s ...<7 lines>... 165s __slots__ = () 165s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 165s import ntpath 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1152, in get_code 165s File "", line 781, in _compile_bytecode 165s KeyboardInterrupt 165s ___________________ SessionAPITest.test_create_file_session ____________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/996b8c32-a1cf-411b-9e85-351e412817e0 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 165s from ipykernel import kernelapp as app 165s File "", line 1360, in _find_and_load 165s File "", line 1322, in _find_and_load_unlocked 165s File "", line 1262, in _find_spec 165s File "", line 1556, in find_spec 165s File "", line 1530, in _get_spec 165s File "", line 1629, in find_spec 165s File "", line 152, in _path_stat 165s KeyboardInterrupt 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu1i93w3x/runtime/kernel-12167415-b27d-4db6-b691-f6f630eefff1.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53265 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49675 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 12167415-b27d-4db6-b691-f6f630eefff1, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu1i93w3x/notebooks/foo'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.320000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.420000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2a2a49c0-ad61-451d-b2b9-748b11e635a3 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2a2a49c0-ad61-451d-b2b9-748b11e635a3 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1213645a-960e-4e42-887e-777cb9449264 (::1) 2.920000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12167415-b27d-4db6-b691-f6f630eefff1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12167415-b27d-4db6-b691-f6f630eefff1 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/996b8c32-a1cf-411b-9e85-351e412817e0 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/996b8c32-a1cf-411b-9e85-351e412817e0', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 165s yielded = self.gen.send(value) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/996b8c32-a1cf-411b-9e85-351e412817e0 (::1) 7.570000ms referer=None 165s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 165s 165s self = 165s 165s def test_create_with_kernel_id(self): 165s # create a new kernel 165s r = self.request('POST', 'api/kernels') 165s r.raise_for_status() 165s kernel = r.json() 165s 165s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 165s self.assertEqual(resp.status_code, 201) 165s newsession = resp.json() 165s self.assertIn('id', newsession) 165s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 165s self.assertEqual(newsession['kernel']['id'], kernel['id']) 165s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 165s 165s sessions = self.sess_api.list().json() 165s > self.assertEqual(sessions, [newsession]) 165s E AssertionError: Lists differ: [{'id': '996b8c32-a1cf-411b-9e85-351e412817e0', 'p[553 chars]ne}}] != [{'id': '3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475', 'p[279 chars]ne}}] 165s E 165s E First differing element 0: 165s E {'id': '996b8c32-a1cf-411b-9e85-351e412817e0', 'p[218 chars]: 0}} 165s E {'id': '3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475', 'p[278 chars]one}} 165s E 165s E First list contains 1 additional elements. 165s E First extra element 1: 165s E {'id': '3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '8da8561b-c1b5-4948-b989-61a35340ce1c', 'name': 'python3', 'last_activity': '2026-01-30T05:45:43.989374Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 165s E 165s E Diff is 830 characters long. Set self.maxDiff to None to see it. 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 165s from ipykernel import kernelapp as app 165s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 165s from .connect import * # noqa: F403 165s ^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 165s from typing import TYPE_CHECKING, Any 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1152, in get_code 165s File "", line 781, in _compile_bytecode 165s KeyboardInterrupt 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu1i93w3x/runtime/kernel-8da8561b-c1b5-4948-b989-61a35340ce1c.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48337 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41545 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8da8561b-c1b5-4948-b989-61a35340ce1c, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.920000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.390000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 3.160000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12167415-b27d-4db6-b691-f6f630eefff1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12167415-b27d-4db6-b691-f6f630eefff1 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/996b8c32-a1cf-411b-9e85-351e412817e0 (::1) 2.330000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8da8561b-c1b5-4948-b989-61a35340ce1c 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8da8561b-c1b5-4948-b989-61a35340ce1c 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 165s yielded = self.gen.send(value) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 (::1) 9.030000ms referer=None 165s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.630000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu1i93w3x/runtime/kernel-55cc2b36-e8d3-4908-a8a8-7e4dbe764ad1.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39799 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42235 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 55cc2b36-e8d3-4908-a8a8-7e4dbe764ad1, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.050000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8da8561b-c1b5-4948-b989-61a35340ce1c 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8da8561b-c1b5-4948-b989-61a35340ce1c 165s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 (::1) 3.050000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.490000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55cc2b36-e8d3-4908-a8a8-7e4dbe764ad1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55cc2b36-e8d3-4908-a8a8-7e4dbe764ad1 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 165s yielded = self.gen.send(value) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 (::1) 7.400000ms referer=None 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 165s from ipykernel import kernelapp as app 165s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 165s from .connect import * # noqa: F403 165s ^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 165s from subprocess import PIPE, Popen 165s File "/usr/lib/python3.13/subprocess.py", line 49, in 165s import signal 165s File "/usr/lib/python3.13/signal.py", line 7, in 165s _IntEnum._convert_( 165s ~~~~~~~~~~~~~~~~~~^ 165s 'Signals', __name__, 165s ^^^^^^^^^^^^^^^^^^^^ 165s ...<2 lines>... 165s and (name.startswith('SIG') and not name.startswith('SIG_')) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s or name.startswith('CTRL_')) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/enum.py", line 918, in _convert_ 165s if filter(name)] 165s ~~~~~~^^^^^^ 165s File "/usr/lib/python3.13/signal.py", line 9, in 165s lambda name: 165s 165s KeyboardInterrupt 165s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.140000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu1i93w3x/runtime/kernel-c68fe8d1-5715-433b-aec7-655e89273c7b.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58207 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60287 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: c68fe8d1-5715-433b-aec7-655e89273c7b, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpu1i93w3x/notebooks/foo'} 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55cc2b36-e8d3-4908-a8a8-7e4dbe764ad1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55cc2b36-e8d3-4908-a8a8-7e4dbe764ad1 165s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 (::1) 19.290000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.580000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c68fe8d1-5715-433b-aec7-655e89273c7b 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c68fe8d1-5715-433b-aec7-655e89273c7b 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3ffe8717-e9f2-4fd7-a1f0-8db7e36a0475', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 165s yielded = self.gen.send(value) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 165s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 165s stopper = ensure_async(km.shutdown_kernel(now, restart)) 165s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 165s return _runner_map[name].run(inner) 165s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 165s return fut.result(None) 165s ~~~~~~~~~~^^^^^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 165s return self.__get_result() 165s ~~~~~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 165s raise self._exception 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 165s gc.collect() 165s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 165s 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 165s from ._abc import * 165s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 165s from glob import _Globber, _no_recurse_symlinks 165s File "/usr/lib/python3.13/glob.py", line 5, in 165s import re 165s File "/usr/lib/python3.13/re/__init__.py", line 381, in 165s import copyreg 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1115, in get_code 165s File "", line 1214, in get_data 165s KeyboardInterrupt 165s ---------------------------- Captured log teardown ----------------------------- 165s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c68fe8d1-5715-433b-aec7-655e89273c7b 165s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 165s _______________________ AsyncSessionAPITest.test_create ________________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0cff8d3e-8ccc-4fde-b227-881636e136c6 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ------------------------------ Captured log setup ------------------------------ 165s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpng1o8vnb/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpng1o8vnb/etc/jupyter'] for config files 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpng1o8vnb/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpng1o8vnb/config 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpng1o8vnb/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 165s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpng1o8vnb/config 165s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpng1o8vnb/notebooks 165s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 165s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 165s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 165s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 165s WARNING NotebookApp:handlers.py:612 Forbidden 165s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.740000ms referer=None 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.250000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpng1o8vnb/runtime/kernel-132251ed-f4e3-468a-8e28-74c4e7205980.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51451 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58703 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 132251ed-f4e3-468a-8e28-74c4e7205980, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpng1o8vnb/notebooks/foo'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.750000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.780000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/0cff8d3e-8ccc-4fde-b227-881636e136c6 (::1) 2.270000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 132251ed-f4e3-468a-8e28-74c4e7205980 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 132251ed-f4e3-468a-8e28-74c4e7205980 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0cff8d3e-8ccc-4fde-b227-881636e136c6 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0cff8d3e-8ccc-4fde-b227-881636e136c6', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0cff8d3e-8ccc-4fde-b227-881636e136c6 (::1) 7.060000ms referer=None 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 165s from ipykernel import kernelapp as app 165s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 165s from .connect import * # noqa: F403 165s ^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 165s import json 165s File "/usr/lib/python3.13/json/__init__.py", line 106, in 165s from .decoder import JSONDecoder, JSONDecodeError 165s File "/usr/lib/python3.13/json/decoder.py", line 5, in 165s from json import scanner 165s File "/usr/lib/python3.13/json/scanner.py", line 13, in 165s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 165s ~~~~~~~~~~~^~~~~~~~~~~~~~ 165s File "/usr/lib/python3.13/enum.py", line 1605, in __or__ 165s return self.__class__(value | other_value) 165s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/enum.py", line 726, in __call__ 165s return cls.__new__(cls, value) 165s ~~~~~~~~~~~^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/enum.py", line 1188, in __new__ 165s result = cls._missing_(value) 165s File "/usr/lib/python3.13/enum.py", line 1525, in _missing_ 165s for m in cls._iter_member_(member_value): 165s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 165s File "/usr/lib/python3.13/enum.py", line 1454, in _iter_member_by_def_ 165s yield from sorted( 165s ~~~~~~^ 165s cls._iter_member_by_value_(value), 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s key=lambda m: m._sort_order_, 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s ) 165s ^ 165s File "/usr/lib/python3.13/enum.py", line 1445, in _iter_member_by_value_ 165s yield cls._value2member_map_.get(val) 165s ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 165s KeyboardInterrupt 165s _______________ AsyncSessionAPITest.test_create_console_session ________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/022698fb-5bf2-4849-8104-98bdad7ac85e 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpng1o8vnb/runtime/kernel-d110927d-35c3-4b65-ba1a-ca1bec809a3b.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60029 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50451 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: d110927d-35c3-4b65-ba1a-ca1bec809a3b, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpng1o8vnb/notebooks/foo'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.720000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 132251ed-f4e3-468a-8e28-74c4e7205980 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 132251ed-f4e3-468a-8e28-74c4e7205980 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0cff8d3e-8ccc-4fde-b227-881636e136c6 (::1) 2.800000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d110927d-35c3-4b65-ba1a-ca1bec809a3b 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d110927d-35c3-4b65-ba1a-ca1bec809a3b 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/022698fb-5bf2-4849-8104-98bdad7ac85e (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/022698fb-5bf2-4849-8104-98bdad7ac85e', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/022698fb-5bf2-4849-8104-98bdad7ac85e (::1) 6.810000ms referer=None 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 165s from ._abc import * 165s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 165s from glob import _Globber, _no_recurse_symlinks 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 948, in _load_unlocked 165s File "", line 491, in _verbose_message 165s KeyboardInterrupt 165s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/61025385-62e2-4d78-a7bf-cf6d52f01cb3 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpng1o8vnb/runtime/kernel-a08d80aa-0dcf-41b7-a98d-76e3db7d65f0.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57461 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57911 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: a08d80aa-0dcf-41b7-a98d-76e3db7d65f0, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpng1o8vnb/notebooks/foo'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.730000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.510000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d110927d-35c3-4b65-ba1a-ca1bec809a3b 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d110927d-35c3-4b65-ba1a-ca1bec809a3b 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/022698fb-5bf2-4849-8104-98bdad7ac85e (::1) 2.860000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a08d80aa-0dcf-41b7-a98d-76e3db7d65f0 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a08d80aa-0dcf-41b7-a98d-76e3db7d65f0 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/61025385-62e2-4d78-a7bf-cf6d52f01cb3 (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/61025385-62e2-4d78-a7bf-cf6d52f01cb3', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 165s from ._local import * 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1152, in get_code 165s File "", line 781, in _compile_bytecode 165s KeyboardInterrupt 165s _________________ AsyncSessionAPITest.test_create_file_session _________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2ba7c5f8-9587-4137-9414-4216b6e08d9e 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpng1o8vnb/runtime/kernel-3192a807-030e-457d-8b93-f960df9e711b.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35085 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48831 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3192a807-030e-457d-8b93-f960df9e711b, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpng1o8vnb/notebooks/foo'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 18.310000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a08d80aa-0dcf-41b7-a98d-76e3db7d65f0 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a08d80aa-0dcf-41b7-a98d-76e3db7d65f0 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/61025385-62e2-4d78-a7bf-cf6d52f01cb3 (::1) 2.560000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3192a807-030e-457d-8b93-f960df9e711b 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3192a807-030e-457d-8b93-f960df9e711b 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2ba7c5f8-9587-4137-9414-4216b6e08d9e (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2ba7c5f8-9587-4137-9414-4216b6e08d9e', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 165s from ._local import * 165s File "/usr/lib/python3.13/pathlib/_local.py", line 6, in 165s import warnings 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1152, in get_code 165s File "", line 781, in _compile_bytecode 165s KeyboardInterrupt 165s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 165s 165s self = 165s 165s def test_create_with_kernel_id(self): 165s # create a new kernel 165s r = self.request('POST', 'api/kernels') 165s r.raise_for_status() 165s kernel = r.json() 165s 165s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 165s self.assertEqual(resp.status_code, 201) 165s newsession = resp.json() 165s self.assertIn('id', newsession) 165s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 165s self.assertEqual(newsession['kernel']['id'], kernel['id']) 165s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 165s 165s sessions = self.sess_api.list().json() 165s > self.assertEqual(sessions, [newsession]) 165s E AssertionError: Lists differ: [{'id': '2ba7c5f8-9587-4137-9414-4216b6e08d9e', 'pa[552 chars]ne}}] != [{'id': '21b49878-c331-4c92-8589-8504b0d353fc', 'pa[278 chars]ne}}] 165s E 165s E First differing element 0: 165s E {'id': '2ba7c5f8-9587-4137-9414-4216b6e08d9e', 'pa[217 chars]: 0}} 165s E {'id': '21b49878-c331-4c92-8589-8504b0d353fc', 'pa[277 chars]one}} 165s E 165s E First list contains 1 additional elements. 165s E First extra element 1: 165s E {'id': '21b49878-c331-4c92-8589-8504b0d353fc', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '74390d6a-eba3-4e9a-a48a-34948ab6d458', 'name': 'python3', 'last_activity': '2026-01-30T05:45:44.475497Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 165s E 165s E Diff is 830 characters long. Set self.maxDiff to None to see it. 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpng1o8vnb/runtime/kernel-74390d6a-eba3-4e9a-a48a-34948ab6d458.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44483 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39059 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 74390d6a-eba3-4e9a-a48a-34948ab6d458, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.470000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.090000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.090000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.500000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3192a807-030e-457d-8b93-f960df9e711b 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3192a807-030e-457d-8b93-f960df9e711b 165s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2ba7c5f8-9587-4137-9414-4216b6e08d9e (::1) 2.330000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74390d6a-eba3-4e9a-a48a-34948ab6d458 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74390d6a-eba3-4e9a-a48a-34948ab6d458 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc (::1) 7.700000ms referer=None 165s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 2.560000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpng1o8vnb/runtime/kernel-6d0d5c66-f2cf-45cc-8003-e6852b71e8b1.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38325 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39551 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6d0d5c66-f2cf-45cc-8003-e6852b71e8b1, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.010000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74390d6a-eba3-4e9a-a48a-34948ab6d458 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74390d6a-eba3-4e9a-a48a-34948ab6d458 165s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc (::1) 2.720000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.810000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.320000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6d0d5c66-f2cf-45cc-8003-e6852b71e8b1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6d0d5c66-f2cf-45cc-8003-e6852b71e8b1 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 165s from ._local import * 165s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 165s class PureWindowsPath(PurePath): 165s ...<7 lines>... 165s __slots__ = () 165s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 165s import ntpath 165s File "/usr/lib/python3.13/ntpath.py", line 301, in 165s {chr(i) for i in range(32)} | 165s ~~~^^^ 165s KeyboardInterrupt 165s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 165s 165s @self.addCleanup 165s def cleanup_sessions(): 165s for session in self.sess_api.list().json(): 165s > self.sess_api.delete(session['id']) 165s 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 165s return self._req('DELETE', id) 165s ^^^^^^^^^^^^^^^^^^^^^^^ 165s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 165s response.raise_for_status() 165s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 165s 165s self = 165s 165s def raise_for_status(self): 165s """Raises :class:`HTTPError`, if one occurred.""" 165s 165s http_error_msg = "" 165s if isinstance(self.reason, bytes): 165s # We attempt to decode utf-8 first because some servers 165s # choose to localize their reason strings. If the string 165s # isn't utf-8, we fall back to iso-8859-1 for all other 165s # encodings. (See PR #3538) 165s try: 165s reason = self.reason.decode("utf-8") 165s except UnicodeDecodeError: 165s reason = self.reason.decode("iso-8859-1") 165s else: 165s reason = self.reason 165s 165s if 400 <= self.status_code < 500: 165s http_error_msg = ( 165s f"{self.status_code} Client Error: {reason} for url: {self.url}" 165s ) 165s 165s elif 500 <= self.status_code < 600: 165s http_error_msg = ( 165s f"{self.status_code} Server Error: {reason} for url: {self.url}" 165s ) 165s 165s if http_error_msg: 165s > raise HTTPError(http_error_msg, response=self) 165s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc 165s 165s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 165s ----------------------------- Captured stderr call ----------------------------- 165s Traceback (most recent call last): 165s ------------------------------ Captured log call ------------------------------- 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.820000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 165s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpng1o8vnb/runtime/kernel-ca504379-35b3-443c-a7a8-5b24efe43f97.json'] 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45917 165s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52641 165s INFO NotebookApp:kernelmanager.py:179 Kernel started: ca504379-35b3-443c-a7a8-5b24efe43f97, name: python3 165s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpng1o8vnb/notebooks/foo'} 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6d0d5c66-f2cf-45cc-8003-e6852b71e8b1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6d0d5c66-f2cf-45cc-8003-e6852b71e8b1 165s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc (::1) 15.900000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.330000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.120000ms 165s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 165s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ca504379-35b3-443c-a7a8-5b24efe43f97 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ca504379-35b3-443c-a7a8-5b24efe43f97 165s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc (::1) 165s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc', version='HTTP/1.1', remote_ip='::1') 165s Traceback (most recent call last): 165s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 165s result = await result 165s ^^^^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 165s future.result() 165s ~~~~~~~~~~~~~^^ 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 165s yield maybe_future(sm.delete_session(session_id)) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 165s yielded = self.gen.throw(exc) 165s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 165s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 165s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 165s value = future.result() 165s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 165s raise self._exception.with_traceback(self._exception_tb) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 165s result = coro.send(None) 165s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 165s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 165s raise km.ready.exception() # type: ignore[misc] 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 165s await kernel_awaitable 165s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 165s result = await obj 165s ^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 165s raise e 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 165s out = await method(self, *args, **kwargs) 165s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 165s await self._async_finish_shutdown(restart=restart) 165s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 165s await asyncio.wait_for( 165s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 165s ) 165s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 165s async with timeouts.timeout(timeout): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^ 165s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 165s raise RuntimeError("Timeout should be used inside a task") 165s RuntimeError: Timeout should be used inside a task 165s WARNING NotebookApp:handlers.py:612 Unhandled error 165s ERROR NotebookApp:log.py:55 { 165s "Host": "localhost:12341", 165s "Accept": "*/*", 165s "User-Agent": "python-requests/2.32.5" 165s } 165s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/21b49878-c331-4c92-8589-8504b0d353fc (::1) 7.820000ms referer=None 165s --------------------------- Captured stderr teardown --------------------------- 165s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 165s return _run_code(code, main_globals, None, 165s "__main__", mod_spec) 165s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 165s exec(code, run_globals) 165s ~~~~^^^^^^^^^^^^^^^^^^^ 165s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 165s from pathlib import Path 165s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 165s from ._local import * 165s File "", line 1360, in _find_and_load 165s File "", line 1331, in _find_and_load_unlocked 165s File "", line 935, in _load_unlocked 165s File "", line 1019, in exec_module 165s File "", line 1152, in get_code 165s File "", line 781, in _compile_bytecode 165s KeyboardInterrupt 165s ---------------------------- Captured log teardown ----------------------------- 165s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6d0d5c66-f2cf-45cc-8003-e6852b71e8b1 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 132251ed-f4e3-468a-8e28-74c4e7205980 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ca504379-35b3-443c-a7a8-5b24efe43f97 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a08d80aa-0dcf-41b7-a98d-76e3db7d65f0 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74390d6a-eba3-4e9a-a48a-34948ab6d458 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3192a807-030e-457d-8b93-f960df9e711b 165s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d110927d-35c3-4b65-ba1a-ca1bec809a3b 165s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 165s =============================== warnings summary =============================== 165s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 165s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 165s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 165s return LooseVersion(v) >= LooseVersion(check) 165s 165s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 165s services/kernels/tests/test_kernels_api.py: 72 warnings 165s services/sessions/tests/test_sessions_api.py: 88 warnings 165s /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). 165s dt = unaware(*args, **kwargs) 165s 165s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 165s /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 165s pytestmark = pytest.mark.integration_tests 165s 165s services/kernels/tests/test_kernels_api.py: 6 warnings 165s services/sessions/tests/test_sessions_api.py: 6 warnings 165s /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 165s policy = events.get_event_loop_policy() 165s 165s services/kernels/tests/test_kernels_api.py: 24 warnings 165s services/sessions/tests/test_sessions_api.py: 19 warnings 165s /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 165s loop = events.get_event_loop_policy().get_event_loop() 165s 165s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 165s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 165s loop.make_current() 165s 165s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 165s =========================== short test summary info ============================ 165s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 165s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 165s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 165s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 165s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 165s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 165s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 165s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 165s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 165s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 165s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 165s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 165s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 165s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 165s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 165s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 165s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 165s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 165s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 165s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 165s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 165s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 165s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 165s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 165s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 165s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 165s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 165s ========== 23 failed, 307 deselected, 220 warnings, 4 errors in 5.53s ========== 166s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 166s *** 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 169s ============================= test session starts ============================== 169s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 169s rootdir: /tmp/autopkgtest.CeZch0/autopkgtest_tmp 169s plugins: typeguard-4.4.4 169s collected 330 items / 307 deselected / 23 selected 169s run-last-failure: rerun previous 23 failures 169s 170s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 171s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 171s 171s ==================================== ERRORS ==================================== 171s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 171s 171s self = 171s 171s def tearDown(self): 171s for k in self.kern_api.list().json(): 171s > self.kern_api.shutdown(k['id']) 171s 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 171s return self._req('DELETE', id) 171s ^^^^^^^^^^^^^^^^^^^^^^^ 171s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 171s response.raise_for_status() 171s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 171s 171s self = 171s 171s def raise_for_status(self): 171s """Raises :class:`HTTPError`, if one occurred.""" 171s 171s http_error_msg = "" 171s if isinstance(self.reason, bytes): 171s # We attempt to decode utf-8 first because some servers 171s # choose to localize their reason strings. If the string 171s # isn't utf-8, we fall back to iso-8859-1 for all other 171s # encodings. (See PR #3538) 171s try: 171s reason = self.reason.decode("utf-8") 171s except UnicodeDecodeError: 171s reason = self.reason.decode("iso-8859-1") 171s else: 171s reason = self.reason 171s 171s if 400 <= self.status_code < 500: 171s http_error_msg = ( 171s f"{self.status_code} Client Error: {reason} for url: {self.url}" 171s ) 171s 171s elif 500 <= self.status_code < 600: 171s http_error_msg = ( 171s f"{self.status_code} Server Error: {reason} for url: {self.url}" 171s ) 171s 171s if http_error_msg: 171s > raise HTTPError(http_error_msg, response=self) 171s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e5030880-8054-46f9-8d4e-40dd04681e68 171s 171s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 171s ----------------------------- Captured stderr call ----------------------------- 171s Traceback (most recent call last): 171s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 171s from pathlib import Path 171s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 171s from ._abc import * 171s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 171s from glob import _Globber, _no_recurse_symlinks 171s File "", line 1360, in _find_and_load 171s File "", line 1331, in _find_and_load_unlocked 171s File "", line 935, in _load_unlocked 171s File "", line 1019, in exec_module 171s File "", line 1152, in get_code 171s File "", line 781, in _compile_bytecode 171s KeyboardInterrupt 171s Traceback (most recent call last): 171s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 171s return _run_code(code, main_globals, None, 171s "__main__", mod_spec) 171s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 171s exec(code, run_globals) 171s ~~~~^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 171s from ipykernel import kernelapp as app 171s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 171s from .connect import * # noqa: F403 171s ^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 171s import jupyter_client 171s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 171s from .asynchronous import AsyncKernelClient 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 171s from .client import AsyncKernelClient # noqa 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 171s import zmq.asyncio 171s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 171s import asyncio 171s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 171s from .base_events import * 171s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 171s from . import coroutines 171s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 171s import inspect 171s File "", line 1360, in _find_and_load 171s File "", line 1331, in _find_and_load_unlocked 171s File "", line 935, in _load_unlocked 171s File "", line 1019, in exec_module 171s File "", line 1115, in get_code 171s File "", line 1215, in get_data 171s KeyboardInterrupt 171s ------------------------------ Captured log call ------------------------------- 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpatkiuii0/runtime/kernel-e5030880-8054-46f9-8d4e-40dd04681e68.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34389 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44169 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: e5030880-8054-46f9-8d4e-40dd04681e68, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.710000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.120000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 171s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpatkiuii0/runtime/kernel-c7fb61e2-a1c6-495e-878b-967b229f60d2.json'] 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44435 171s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37257 171s INFO NotebookApp:kernelmanager.py:179 Kernel started: c7fb61e2-a1c6-495e-878b-967b229f60d2, name: python3 171s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 171s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.420000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.630000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c7fb61e2-a1c6-495e-878b-967b229f60d2 171s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c7fb61e2-a1c6-495e-878b-967b229f60d2/interrupt (::1) 4.450000ms 171s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 171s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 171s Traceback (most recent call last): 171s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 171s out = await method(self, *args, **kwargs) 171s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 172s yield maybe_future(km.restart_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 172s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 172s await ensure_async(kernel.restart_kernel(now=now)) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 172s await self._async_shutdown_kernel(now=now, restart=True) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c7fb61e2-a1c6-495e-878b-967b229f60d2/restart (::1) 8.260000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e5030880-8054-46f9-8d4e-40dd04681e68 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e5030880-8054-46f9-8d4e-40dd04681e68 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e5030880-8054-46f9-8d4e-40dd04681e68 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e5030880-8054-46f9-8d4e-40dd04681e68', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 172s yielded = ctx_run(next, result) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 172s 172s self = 172s 172s def tearDown(self): 172s for k in self.kern_api.list().json(): 172s > self.kern_api.shutdown(k['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0ddf088a-d350-4b90-bacc-a4791477407a 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 172s import functools 172s File "/usr/lib/python3.13/functools.py", line 18, in 172s from collections import namedtuple 172s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 172s from _collections import deque 172s KeyboardInterrupt 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0ousbhua/runtime/kernel-0ddf088a-d350-4b90-bacc-a4791477407a.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47105 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51743 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0ddf088a-d350-4b90-bacc-a4791477407a, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.410000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0ousbhua/runtime/kernel-1b0537b8-29fc-4fe6-ace1-8b078bea56f8.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50117 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34325 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1b0537b8-29fc-4fe6-ace1-8b078bea56f8, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.010000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.570000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1b0537b8-29fc-4fe6-ace1-8b078bea56f8 172s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1b0537b8-29fc-4fe6-ace1-8b078bea56f8/interrupt (::1) 0.970000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 172s yield maybe_future(km.restart_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 172s result = coro.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 172s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 172s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 172s yield self # This tells Task to wait for completion. 172s ^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 172s await ensure_async(kernel.restart_kernel(now=now)) 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 172s await self._async_shutdown_kernel(now=now, restart=True) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1b0537b8-29fc-4fe6-ace1-8b078bea56f8/restart (::1) 6.850000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0ddf088a-d350-4b90-bacc-a4791477407a 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ddf088a-d350-4b90-bacc-a4791477407a 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0ddf088a-d350-4b90-bacc-a4791477407a (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0ddf088a-d350-4b90-bacc-a4791477407a', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 172s import jupyter_client 172s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 172s from .asynchronous import AsyncKernelClient 172s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 172s from .client import AsyncKernelClient # noqa 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 172s import zmq.asyncio 172s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 172s import asyncio 172s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 172s from .base_events import * 172s File "/usr/lib/python3.13/asyncio/base_events.py", line 18, in 172s import concurrent.futures 172s File "/usr/lib/python3.13/concurrent/futures/__init__.py", line 8, in 172s from concurrent.futures._base import (FIRST_COMPLETED, 172s ...<9 lines>... 172s as_completed) 172s File "/usr/lib/python3.13/concurrent/futures/_base.py", line 7, in 172s import logging 172s File "/usr/lib/python3.13/logging/__init__.py", line 29, in 172s from string import Template 172s File "/usr/lib/python3.13/string.py", line 175, in 172s Template.__init_subclass__() 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.13/string.py", line 85, in __init_subclass__ 172s cls.pattern = _re.compile(pattern, cls.flags | _re.VERBOSE) 172s ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 172s return _compile(pattern, flags) 172s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 172s p = _compiler.compile(pattern, flags) 172s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 172s code = _code(p, flags) 172s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 172s _compile(code, p.data, flags) 172s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_compiler.py", line 174, in _compile 172s _compile(code, av, flags) 172s ~~~~~~~~^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 172s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 172s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_compiler.py", line 37, in _compile 172s def _compile(code, pattern, flags): 172s 172s KeyboardInterrupt 172s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5o1q92pw/runtime/kernel-251edcdf-8ee3-471c-966e-0835f0dbda2d.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39817 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40455 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 251edcdf-8ee3-471c-966e-0835f0dbda2d, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.360000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.070000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27eae6a9-2117-4743-92a1-9a00e1413e6f 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27eae6a9-2117-4743-92a1-9a00e1413e6f 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/27671391-2407-41e7-aec1-cf636fa5b757 (::1) 1.200000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 251edcdf-8ee3-471c-966e-0835f0dbda2d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 251edcdf-8ee3-471c-966e-0835f0dbda2d 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f (::1) 9.990000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 172s from subprocess import PIPE, Popen 172s File "/usr/lib/python3.13/subprocess.py", line 46, in 172s import locale 172s File "/usr/lib/python3.13/locale.py", line 180, in 172s _percent_re = re.compile(r'%(?:\((?P.*?)\))?' 172s r'(?P[-#0-9 +*.hlL]*?)[eEfFgGdiouxXcrs%]') 172s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 172s return _compile(pattern, flags) 172s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 172s p = _compiler.compile(pattern, flags) 172s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 172s code = _code(p, flags) 172s File "/usr/lib/python3.13/re/_compiler.py", line 585, in _code 172s _compile(code, p.data, flags) 172s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_compiler.py", line 117, in _compile 172s _compile(code, av[2], flags) 172s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_compiler.py", line 126, in _compile 172s _compile(code, p, _combine_flags(flags, add_flags, del_flags)) 172s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_compiler.py", line 109, in _compile 172s _compile(code, av[2], flags) 172s ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_compiler.py", line 102, in _compile 172s emit(ANY) 172s ~~~~^^^^^ 172s KeyboardInterrupt 172s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm58eek2s/runtime/kernel-fd7c38d1-8efd-426b-b53f-71742ec4ba2d.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51041 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55663 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: fd7c38d1-8efd-426b-b53f-71742ec4ba2d, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.220000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.680000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.410000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.410000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for af69fd8d-7a0b-4b58-9157-95e8950a3ef0 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: af69fd8d-7a0b-4b58-9157-95e8950a3ef0 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/35ee0a21-f7ef-42fd-a0a5-a40a9e125f33 (::1) 2.430000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd7c38d1-8efd-426b-b53f-71742ec4ba2d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd7c38d1-8efd-426b-b53f-71742ec4ba2d 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 (::1) 6.840000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 172s from subprocess import PIPE, Popen 172s File "/usr/lib/python3.13/subprocess.py", line 49, in 172s import signal 172s File "/usr/lib/python3.13/signal.py", line 7, in 172s _IntEnum._convert_( 172s ~~~~~~~~~~~~~~~~~~^ 172s 'Signals', __name__, 172s ^^^^^^^^^^^^^^^^^^^^ 172s ...<2 lines>... 172s and (name.startswith('SIG') and not name.startswith('SIG_')) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s or name.startswith('CTRL_')) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/enum.py", line 921, in _convert_ 172s members.sort(key=lambda t: (t[1], t[0])) 172s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/enum.py", line 921, in 172s members.sort(key=lambda t: (t[1], t[0])) 172s 172s KeyboardInterrupt 172s =================================== FAILURES =================================== 172s ______________________ KernelAPITest.test_default_kernel _______________________ 172s 172s self = 172s 172s def tearDown(self): 172s for k in self.kern_api.list().json(): 172s > self.kern_api.shutdown(k['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/53b5e825-3871-43c2-814b-4e7c0e1eccf1 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log setup ------------------------------ 172s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpatkiuii0/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpatkiuii0/etc/jupyter'] for config files 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpatkiuii0/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpatkiuii0/config 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpatkiuii0/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpatkiuii0/config 172s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpatkiuii0/notebooks 172s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 172s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 172s WARNING NotebookApp:handlers.py:612 Forbidden 172s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.970000ms referer=None 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpatkiuii0/runtime/kernel-53b5e825-3871-43c2-814b-4e7c0e1eccf1.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58341 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60905 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 53b5e825-3871-43c2-814b-4e7c0e1eccf1, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 50.930000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.020000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 53b5e825-3871-43c2-814b-4e7c0e1eccf1 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53b5e825-3871-43c2-814b-4e7c0e1eccf1 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/53b5e825-3871-43c2-814b-4e7c0e1eccf1 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/53b5e825-3871-43c2-814b-4e7c0e1eccf1', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 172s yielded = ctx_run(next, result) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "/usr/lib/python3.13/glob.py", line 5, in 172s import re 172s File "/usr/lib/python3.13/re/__init__.py", line 126, in 172s from . import _compiler, _parser 172s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 172s from . import _parser 172s File "/usr/lib/python3.13/re/_parser.py", line 15, in 172s from ._constants import * 172s File "/usr/lib/python3.13/re/_constants.py", line 130, in 172s ATCODES = _makecodes( 172s 'AT_BEGINNING', 'AT_BEGINNING_LINE', 'AT_BEGINNING_STRING', 172s ...<5 lines>... 172s 'AT_UNI_BOUNDARY', 'AT_UNI_NON_BOUNDARY', 172s ) 172s File "/usr/lib/python3.13/re/_constants.py", line 73, in _makecodes 172s items = [_NamedIntConstant(i, name) for i, name in enumerate(names)] 172s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 172s KeyboardInterrupt 172s ______________________ KernelAPITest.test_kernel_handler _______________________ 172s 172s self = 172s 172s def test_kernel_handler(self): 172s # GET kernel with given id 172s kid = self.kern_api.start().json()['id'] 172s r = self.kern_api.get(kid) 172s kern1 = r.json() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(kern1, dict) 172s self.assertIn('id', kern1) 172s self.assertEqual(kern1['id'], kid) 172s 172s # Request a bad kernel id and check that a JSON 172s # message is returned! 172s bad_id = '111-111-111-111-111' 172s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 172s self.kern_api.get(bad_id) 172s 172s # DELETE kernel with id 172s > r = self.kern_api.shutdown(kid) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/53382385-bdc1-491b-9303-5709b05df11f 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "/usr/lib/python3.13/glob.py", line 236, in 172s magic_check = re.compile('([*?[])') 172s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 172s return _compile(pattern, flags) 172s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 172s p = _compiler.compile(pattern, flags) 172s File "/usr/lib/python3.13/re/_compiler.py", line 752, in compile 172s code = _code(p, flags) 172s File "/usr/lib/python3.13/re/_compiler.py", line 582, in _code 172s _compile_info(code, p, flags) 172s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_compiler.py", line 568, in _compile_info 172s charset, hascased = _optimize_charset(charset) 172s ~~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_compiler.py", line 342, in _optimize_charset 172s data = _mk_bitmap(charmap) 172s File "/usr/lib/python3.13/re/_compiler.py", line 391, in _mk_bitmap 172s return [_int(s[i - _CODEBITS: i], 2) 172s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 172s KeyboardInterrupt 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpatkiuii0/runtime/kernel-53382385-bdc1-491b-9303-5709b05df11f.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40175 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51669 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 53382385-bdc1-491b-9303-5709b05df11f, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 18.120000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/53382385-bdc1-491b-9303-5709b05df11f (::1) 1.560000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 172s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 172s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 2.330000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 53382385-bdc1-491b-9303-5709b05df11f 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53382385-bdc1-491b-9303-5709b05df11f 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/53382385-bdc1-491b-9303-5709b05df11f (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/53382385-bdc1-491b-9303-5709b05df11f', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 172s yielded = ctx_run(next, result) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/53382385-bdc1-491b-9303-5709b05df11f (::1) 7.100000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 53b5e825-3871-43c2-814b-4e7c0e1eccf1 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53b5e825-3871-43c2-814b-4e7c0e1eccf1 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/53b5e825-3871-43c2-814b-4e7c0e1eccf1 (::1) 2.600000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 53382385-bdc1-491b-9303-5709b05df11f 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53382385-bdc1-491b-9303-5709b05df11f 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/53382385-bdc1-491b-9303-5709b05df11f (::1) 0.960000ms 172s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 172s 172s self = 172s 172s def test_main_kernel_handler(self): 172s # POST request 172s r = self.kern_api.start() 172s kern1 = r.json() 172s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 172s self.assertEqual(r.status_code, 201) 172s self.assertIsInstance(kern1, dict) 172s 172s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 172s expected_csp = '; '.join([ 172s "frame-ancestors 'self'", 172s 'report-uri ' + report_uri, 172s "default-src 'none'" 172s ]) 172s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 172s 172s # GET request 172s r = self.kern_api.list() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(r.json(), list) 172s self.assertEqual(r.json()[0]['id'], kern1['id']) 172s self.assertEqual(r.json()[0]['name'], kern1['name']) 172s 172s # create another kernel and check that they both are added to the 172s # list of kernels from a GET request 172s kern2 = self.kern_api.start().json() 172s assert isinstance(kern2, dict) 172s r = self.kern_api.list() 172s kernels = r.json() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(kernels, list) 172s self.assertEqual(len(kernels), 2) 172s 172s # Interrupt a kernel 172s r = self.kern_api.interrupt(kern2['id']) 172s self.assertEqual(r.status_code, 204) 172s 172s # Restart a kernel 172s > r = self.kern_api.restart(kern2['id']) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 172s return self._req('POST', url_path_join(id, 'restart')) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/c7fb61e2-a1c6-495e-878b-967b229f60d2/restart 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1152, in get_code 172s File "", line 781, in _compile_bytecode 172s KeyboardInterrupt 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 172s import jupyter_client 172s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 172s from .asynchronous import AsyncKernelClient 172s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 172s from .client import AsyncKernelClient # noqa 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 172s import zmq.asyncio 172s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 172s import asyncio 172s File "/usr/lib/python3.13/asyncio/__init__.py", line 8, in 172s from .base_events import * 172s File "/usr/lib/python3.13/asyncio/base_events.py", line 39, in 172s from . import coroutines 172s File "/usr/lib/python3.13/asyncio/coroutines.py", line 4, in 172s import inspect 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1115, in get_code 172s File "", line 1215, in get_data 172s KeyboardInterrupt 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpatkiuii0/runtime/kernel-e5030880-8054-46f9-8d4e-40dd04681e68.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34389 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44169 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: e5030880-8054-46f9-8d4e-40dd04681e68, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.710000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.120000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpatkiuii0/runtime/kernel-c7fb61e2-a1c6-495e-878b-967b229f60d2.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44435 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37257 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: c7fb61e2-a1c6-495e-878b-967b229f60d2, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.420000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.630000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: c7fb61e2-a1c6-495e-878b-967b229f60d2 172s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/c7fb61e2-a1c6-495e-878b-967b229f60d2/interrupt (::1) 4.450000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 172s yield maybe_future(km.restart_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 172s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 172s await ensure_async(kernel.restart_kernel(now=now)) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 172s await self._async_shutdown_kernel(now=now, restart=True) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/c7fb61e2-a1c6-495e-878b-967b229f60d2/restart (::1) 8.260000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.790000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e5030880-8054-46f9-8d4e-40dd04681e68 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e5030880-8054-46f9-8d4e-40dd04681e68 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e5030880-8054-46f9-8d4e-40dd04681e68 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e5030880-8054-46f9-8d4e-40dd04681e68', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 172s yielded = ctx_run(next, result) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ________________________ KernelAPITest.test_no_kernels _________________________ 172s 172s self = 172s 172s def test_no_kernels(self): 172s """Make sure there are no kernels running at the start""" 172s kernels = self.kern_api.list().json() 172s > self.assertEqual(kernels, []) 172s E AssertionError: Lists differ: [{'id': 'e5030880-8054-46f9-8d4e-40dd04681[281 chars]: 0}] != [] 172s E 172s E First list contains 2 additional elements. 172s E First extra element 0: 172s E {'id': 'e5030880-8054-46f9-8d4e-40dd04681e68', 'name': 'python3', 'last_activity': '2026-01-30T05:45:49.294091Z', 'execution_state': 'starting', 'connections': 0} 172s E 172s E + [] 172s E - [{'connections': 0, 172s E - 'execution_state': 'starting', 172s E - 'id': 'e5030880-8054-46f9-8d4e-40dd04681e68', 172s E - 'last_activity': '2026-01-30T05:45:49.294091Z', 172s E - 'name': 'python3'}, 172s E - {'connections': 0, 172s E - 'execution_state': 'starting', 172s E - 'id': 'c7fb61e2-a1c6-495e-878b-967b229f60d2', 172s E - 'last_activity': '2026-01-30T05:45:49.317684Z', 172s E - 'name': 'python3'}] 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.570000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e5030880-8054-46f9-8d4e-40dd04681e68 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e5030880-8054-46f9-8d4e-40dd04681e68 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e5030880-8054-46f9-8d4e-40dd04681e68 (::1) 1.070000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c7fb61e2-a1c6-495e-878b-967b229f60d2 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c7fb61e2-a1c6-495e-878b-967b229f60d2 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/c7fb61e2-a1c6-495e-878b-967b229f60d2 (::1) 1.350000ms 172s ---------------------------- Captured log teardown ----------------------------- 172s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 172s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 172s _____________________ AsyncKernelAPITest.test_connections ______________________ 172s 172s self = 172s 172s def tearDown(self): 172s for k in self.kern_api.list().json(): 172s > self.kern_api.shutdown(k['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log setup ------------------------------ 172s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp0ousbhua/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp0ousbhua/etc/jupyter'] for config files 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0ousbhua/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp0ousbhua/config 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0ousbhua/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp0ousbhua/config 172s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp0ousbhua/notebooks 172s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 172s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 172s WARNING NotebookApp:handlers.py:612 Forbidden 172s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.640000ms referer=None 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0ousbhua/runtime/kernel-4ae9c0d5-26ad-47aa-b179-22cfa758eb83.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59421 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47343 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4ae9c0d5-26ad-47aa-b179-22cfa758eb83, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.810000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83 (::1) 0.900000ms 172s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83/channels 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 172s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42683 172s DEBUG NotebookApp:kernelmanager.py:423 activity on 4ae9c0d5-26ad-47aa-b179-22cfa758eb83: status (starting) 172s DEBUG NotebookApp:kernelmanager.py:423 activity on 4ae9c0d5-26ad-47aa-b179-22cfa758eb83: status (busy) 172s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.13.11', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.13.11 (main, Dec 6 2025, 13:15:20) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.13'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 172s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 4ae9c0d5-26ad-47aa-b179-22cfa758eb83) to 5.4 (client). 172s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83/channels (::1) 541.990000ms 172s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83/channels 172s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47343 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42683 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59421 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49101 172s DEBUG NotebookApp:handlers.py:156 Nudge: not nudging busy kernel 4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 172s Setting websocket_ping_timeout=30000 172s DEBUG NotebookApp:kernelmanager.py:423 activity on 4ae9c0d5-26ad-47aa-b179-22cfa758eb83: status (idle) 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83 (::1) 0.860000ms 172s DEBUG NotebookApp:handlers.py:579 Websocket closed 4ae9c0d5-26ad-47aa-b179-22cfa758eb83:e9e1bd46-e83ef065d926e2ec7baeab84 172s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 4ae9c0d5-26ad-47aa-b179-22cfa758eb83:e9e1bd46-e83ef065d926e2ec7baeab84 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83 (::1) 0.810000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83 (::1) 0.900000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83 (::1) 6.470000ms referer=None 172s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 172s 172s self = 172s 172s def tearDown(self): 172s for k in self.kern_api.list().json(): 172s > self.kern_api.shutdown(k['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/061c6dda-d54d-41ed-89f7-d71f3884d3cd 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0ousbhua/runtime/kernel-061c6dda-d54d-41ed-89f7-d71f3884d3cd.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59317 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41509 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 061c6dda-d54d-41ed-89f7-d71f3884d3cd, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 22.890000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 4.440000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4ae9c0d5-26ad-47aa-b179-22cfa758eb83 (::1) 4.180000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 061c6dda-d54d-41ed-89f7-d71f3884d3cd 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 061c6dda-d54d-41ed-89f7-d71f3884d3cd 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/061c6dda-d54d-41ed-89f7-d71f3884d3cd (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/061c6dda-d54d-41ed-89f7-d71f3884d3cd', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/061c6dda-d54d-41ed-89f7-d71f3884d3cd (::1) 14.140000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 921, in _load_unlocked 172s File "", line 819, in module_from_spec 172s File "", line 791, in _init_module_attrs 172s KeyboardInterrupt 172s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 172s 172s self = 172s 172s def test_kernel_handler(self): 172s # GET kernel with given id 172s kid = self.kern_api.start().json()['id'] 172s r = self.kern_api.get(kid) 172s kern1 = r.json() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(kern1, dict) 172s self.assertIn('id', kern1) 172s self.assertEqual(kern1['id'], kid) 172s 172s # Request a bad kernel id and check that a JSON 172s # message is returned! 172s bad_id = '111-111-111-111-111' 172s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 172s self.kern_api.get(bad_id) 172s 172s # DELETE kernel with id 172s > r = self.kern_api.shutdown(kid) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ba2d345e-2376-41e0-9694-1080c8cd58d4 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0ousbhua/runtime/kernel-ba2d345e-2376-41e0-9694-1080c8cd58d4.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32951 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46137 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: ba2d345e-2376-41e0-9694-1080c8cd58d4, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 19.490000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ba2d345e-2376-41e0-9694-1080c8cd58d4 (::1) 4.700000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s WARNING NotebookApp:web.py:1943 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1): Kernel does not exist: 111-111-111-111-111 172s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 172s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 4.670000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ba2d345e-2376-41e0-9694-1080c8cd58d4 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba2d345e-2376-41e0-9694-1080c8cd58d4 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ba2d345e-2376-41e0-9694-1080c8cd58d4 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ba2d345e-2376-41e0-9694-1080c8cd58d4', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ba2d345e-2376-41e0-9694-1080c8cd58d4 (::1) 15.140000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.840000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 061c6dda-d54d-41ed-89f7-d71f3884d3cd 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 061c6dda-d54d-41ed-89f7-d71f3884d3cd 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/061c6dda-d54d-41ed-89f7-d71f3884d3cd (::1) 2.390000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ba2d345e-2376-41e0-9694-1080c8cd58d4 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba2d345e-2376-41e0-9694-1080c8cd58d4 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 172s import functools 172s File "/usr/lib/python3.13/functools.py", line 18, in 172s from collections import namedtuple 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1152, in get_code 172s File "", line 781, in _compile_bytecode 172s KeyboardInterrupt 172s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 172s 172s self = 172s 172s def test_main_kernel_handler(self): 172s # POST request 172s r = self.kern_api.start() 172s kern1 = r.json() 172s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 172s self.assertEqual(r.status_code, 201) 172s self.assertIsInstance(kern1, dict) 172s 172s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 172s expected_csp = '; '.join([ 172s "frame-ancestors 'self'", 172s 'report-uri ' + report_uri, 172s "default-src 'none'" 172s ]) 172s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 172s 172s # GET request 172s r = self.kern_api.list() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(r.json(), list) 172s self.assertEqual(r.json()[0]['id'], kern1['id']) 172s self.assertEqual(r.json()[0]['name'], kern1['name']) 172s 172s # create another kernel and check that they both are added to the 172s # list of kernels from a GET request 172s kern2 = self.kern_api.start().json() 172s assert isinstance(kern2, dict) 172s r = self.kern_api.list() 172s kernels = r.json() 172s self.assertEqual(r.status_code, 200) 172s assert isinstance(kernels, list) 172s self.assertEqual(len(kernels), 2) 172s 172s # Interrupt a kernel 172s r = self.kern_api.interrupt(kern2['id']) 172s self.assertEqual(r.status_code, 204) 172s 172s # Restart a kernel 172s > r = self.kern_api.restart(kern2['id']) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 172s return self._req('POST', url_path_join(id, 'restart')) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/1b0537b8-29fc-4fe6-ace1-8b078bea56f8/restart 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 14, in 172s import functools 172s File "/usr/lib/python3.13/functools.py", line 18, in 172s from collections import namedtuple 172s File "/usr/lib/python3.13/collections/__init__.py", line 45, in 172s from _collections import deque 172s KeyboardInterrupt 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0ousbhua/runtime/kernel-0ddf088a-d350-4b90-bacc-a4791477407a.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47105 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51743 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0ddf088a-d350-4b90-bacc-a4791477407a, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.410000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.820000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp0ousbhua/runtime/kernel-1b0537b8-29fc-4fe6-ace1-8b078bea56f8.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50117 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34325 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1b0537b8-29fc-4fe6-ace1-8b078bea56f8, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.010000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.570000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 1b0537b8-29fc-4fe6-ace1-8b078bea56f8 172s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/1b0537b8-29fc-4fe6-ace1-8b078bea56f8/interrupt (::1) 0.970000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 172s yield maybe_future(km.restart_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 172s result = coro.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 172s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 172s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 172s yield self # This tells Task to wait for completion. 172s ^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 172s await ensure_async(kernel.restart_kernel(now=now)) 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 172s await self._async_shutdown_kernel(now=now, restart=True) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/1b0537b8-29fc-4fe6-ace1-8b078bea56f8/restart (::1) 6.850000ms referer=None 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.840000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0ddf088a-d350-4b90-bacc-a4791477407a 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ddf088a-d350-4b90-bacc-a4791477407a 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0ddf088a-d350-4b90-bacc-a4791477407a (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0ddf088a-d350-4b90-bacc-a4791477407a', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 172s yield maybe_future(km.shutdown_kernel(kernel_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 172s 172s self = 172s 172s def test_no_kernels(self): 172s """Make sure there are no kernels running at the start""" 172s kernels = self.kern_api.list().json() 172s > self.assertEqual(kernels, []) 172s E AssertionError: Lists differ: [{'id': '0ddf088a-d350-4b90-bacc-a47914774[281 chars]: 0}] != [] 172s E 172s E First list contains 2 additional elements. 172s E First extra element 0: 172s E {'id': '0ddf088a-d350-4b90-bacc-a4791477407a', 'name': 'python3', 'last_activity': '2026-01-30T05:45:50.315536Z', 'execution_state': 'starting', 'connections': 0} 172s E 172s E + [] 172s E - [{'connections': 0, 172s E - 'execution_state': 'starting', 172s E - 'id': '0ddf088a-d350-4b90-bacc-a4791477407a', 172s E - 'last_activity': '2026-01-30T05:45:50.315536Z', 172s E - 'name': 'python3'}, 172s E - {'connections': 0, 172s E - 'execution_state': 'starting', 172s E - 'id': '1b0537b8-29fc-4fe6-ace1-8b078bea56f8', 172s E - 'last_activity': '2026-01-30T05:45:50.339568Z', 172s E - 'name': 'python3'}] 172s 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.610000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.860000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0ddf088a-d350-4b90-bacc-a4791477407a 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ddf088a-d350-4b90-bacc-a4791477407a 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0ddf088a-d350-4b90-bacc-a4791477407a (::1) 0.950000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1b0537b8-29fc-4fe6-ace1-8b078bea56f8 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1b0537b8-29fc-4fe6-ace1-8b078bea56f8 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/1b0537b8-29fc-4fe6-ace1-8b078bea56f8 (::1) 1.020000ms 172s ---------------------------- Captured log teardown ----------------------------- 172s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ba2d345e-2376-41e0-9694-1080c8cd58d4 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4ae9c0d5-26ad-47aa-b179-22cfa758eb83 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0ddf088a-d350-4b90-bacc-a4791477407a 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 061c6dda-d54d-41ed-89f7-d71f3884d3cd 172s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 172s __________________________ SessionAPITest.test_create __________________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dc2dfdca-1e6d-42d2-804f-f5c573891506 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log setup ------------------------------ 172s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp5o1q92pw/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp5o1q92pw/etc/jupyter'] for config files 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5o1q92pw/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp5o1q92pw/config 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5o1q92pw/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp5o1q92pw/config 172s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp5o1q92pw/notebooks 172s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 172s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 172s WARNING NotebookApp:handlers.py:612 Forbidden 172s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.650000ms referer=None 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.210000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5o1q92pw/runtime/kernel-6bcf4f51-04f9-4c34-a5ac-a5ff0087952b.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40793 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41973 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6bcf4f51-04f9-4c34-a5ac-a5ff0087952b, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5o1q92pw/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.750000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.970000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/dc2dfdca-1e6d-42d2-804f-f5c573891506 (::1) 1.030000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.940000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6bcf4f51-04f9-4c34-a5ac-a5ff0087952b 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6bcf4f51-04f9-4c34-a5ac-a5ff0087952b 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dc2dfdca-1e6d-42d2-804f-f5c573891506 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dc2dfdca-1e6d-42d2-804f-f5c573891506', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dc2dfdca-1e6d-42d2-804f-f5c573891506 (::1) 7.720000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 948, in _load_unlocked 172s File "", line 491, in _verbose_message 172s KeyboardInterrupt 172s __________________ SessionAPITest.test_create_console_session __________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/57b11c2f-ab76-4516-b38e-20f47de9dd47 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5o1q92pw/runtime/kernel-ce4512a9-f973-49d6-86d8-0d5d8379cbc4.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36097 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53547 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: ce4512a9-f973-49d6-86d8-0d5d8379cbc4, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5o1q92pw/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.000000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.000000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6bcf4f51-04f9-4c34-a5ac-a5ff0087952b 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6bcf4f51-04f9-4c34-a5ac-a5ff0087952b 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dc2dfdca-1e6d-42d2-804f-f5c573891506 (::1) 2.450000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ce4512a9-f973-49d6-86d8-0d5d8379cbc4 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ce4512a9-f973-49d6-86d8-0d5d8379cbc4 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/57b11c2f-ab76-4516-b38e-20f47de9dd47 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/57b11c2f-ab76-4516-b38e-20f47de9dd47', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/57b11c2f-ab76-4516-b38e-20f47de9dd47 (::1) 7.580000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "/usr/lib/python3.13/glob.py", line 5, in 172s import re 172s File "/usr/lib/python3.13/re/__init__.py", line 126, in 172s from . import _compiler, _parser 172s File "/usr/lib/python3.13/re/_compiler.py", line 14, in 172s from . import _parser 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1152, in get_code 172s File "", line 781, in _compile_bytecode 172s KeyboardInterrupt 172s ____________________ SessionAPITest.test_create_deprecated _____________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e819228c-65b3-4b19-9c00-036d403ad9ff 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5o1q92pw/runtime/kernel-55e20596-0d69-480b-bb37-ebf63a873554.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50093 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50291 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 55e20596-0d69-480b-bb37-ebf63a873554, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5o1q92pw/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.910000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.610000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ce4512a9-f973-49d6-86d8-0d5d8379cbc4 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ce4512a9-f973-49d6-86d8-0d5d8379cbc4 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/57b11c2f-ab76-4516-b38e-20f47de9dd47 (::1) 2.980000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55e20596-0d69-480b-bb37-ebf63a873554 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55e20596-0d69-480b-bb37-ebf63a873554 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e819228c-65b3-4b19-9c00-036d403ad9ff (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e819228c-65b3-4b19-9c00-036d403ad9ff', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e819228c-65b3-4b19-9c00-036d403ad9ff (::1) 7.590000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 172s from ._local import * 172s File "/usr/lib/python3.13/pathlib/_local.py", line 12, in 172s import pwd 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 911, in _load_unlocked 172s KeyboardInterrupt 172s ___________________ SessionAPITest.test_create_file_session ____________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/27671391-2407-41e7-aec1-cf636fa5b757 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5o1q92pw/runtime/kernel-27eae6a9-2117-4743-92a1-9a00e1413e6f.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34459 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41789 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 27eae6a9-2117-4743-92a1-9a00e1413e6f, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp5o1q92pw/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 19.710000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.460000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 55e20596-0d69-480b-bb37-ebf63a873554 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 55e20596-0d69-480b-bb37-ebf63a873554 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e819228c-65b3-4b19-9c00-036d403ad9ff (::1) 2.910000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27eae6a9-2117-4743-92a1-9a00e1413e6f 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27eae6a9-2117-4743-92a1-9a00e1413e6f 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/27671391-2407-41e7-aec1-cf636fa5b757 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/27671391-2407-41e7-aec1-cf636fa5b757', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 172s from ._local import * 172s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 172s class PureWindowsPath(PurePath): 172s ...<7 lines>... 172s __slots__ = () 172s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 172s import ntpath 172s File "", line 1360, in _find_and_load 172s File "", line 1322, in _find_and_load_unlocked 172s File "", line 1262, in _find_spec 172s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 172s method_name = 'spec_for_{fullname}'.format(**locals()) 172s ~~~~~~^^ 172s KeyboardInterrupt 172s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 172s 172s self = 172s 172s def test_create_with_kernel_id(self): 172s # create a new kernel 172s r = self.request('POST', 'api/kernels') 172s r.raise_for_status() 172s kernel = r.json() 172s 172s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 172s self.assertEqual(resp.status_code, 201) 172s newsession = resp.json() 172s self.assertIn('id', newsession) 172s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 172s self.assertEqual(newsession['kernel']['id'], kernel['id']) 172s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 172s 172s sessions = self.sess_api.list().json() 172s > self.assertEqual(sessions, [newsession]) 172s E AssertionError: Lists differ: [{'id': '27671391-2407-41e7-aec1-cf636fa5b757', 'p[553 chars]ne}}] != [{'id': 'b0119acf-15dc-479e-a7ba-603e4339fc7f', 'p[279 chars]ne}}] 172s E 172s E First differing element 0: 172s E {'id': '27671391-2407-41e7-aec1-cf636fa5b757', 'p[218 chars]: 0}} 172s E {'id': 'b0119acf-15dc-479e-a7ba-603e4339fc7f', 'p[278 chars]one}} 172s E 172s E First list contains 1 additional elements. 172s E First extra element 1: 172s E {'id': 'b0119acf-15dc-479e-a7ba-603e4339fc7f', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '251edcdf-8ee3-471c-966e-0835f0dbda2d', 'name': 'python3', 'last_activity': '2026-01-30T05:45:50.830699Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 172s E 172s E Diff is 830 characters long. Set self.maxDiff to None to see it. 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5o1q92pw/runtime/kernel-251edcdf-8ee3-471c-966e-0835f0dbda2d.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39817 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40455 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 251edcdf-8ee3-471c-966e-0835f0dbda2d, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.360000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.070000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.890000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 27eae6a9-2117-4743-92a1-9a00e1413e6f 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 27eae6a9-2117-4743-92a1-9a00e1413e6f 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/27671391-2407-41e7-aec1-cf636fa5b757 (::1) 1.200000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 251edcdf-8ee3-471c-966e-0835f0dbda2d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 251edcdf-8ee3-471c-966e-0835f0dbda2d 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f (::1) 9.990000ms referer=None 172s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s File "", line 1513, in _path_importer_cache 172s KeyError: '/usr/lib/python3.13/json' 172s 172s During handling of the above exception, another exception occurred: 172s 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.210000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5o1q92pw/runtime/kernel-1e640af8-7ea8-4a6c-8852-3889fd00fbec.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54139 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48635 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1e640af8-7ea8-4a6c-8852-3889fd00fbec, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.550000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 251edcdf-8ee3-471c-966e-0835f0dbda2d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 251edcdf-8ee3-471c-966e-0835f0dbda2d 172s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f (::1) 2.270000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.400000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.790000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1e640af8-7ea8-4a6c-8852-3889fd00fbec 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1e640af8-7ea8-4a6c-8852-3889fd00fbec 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 172s import json 172s File "/usr/lib/python3.13/json/__init__.py", line 106, in 172s from .decoder import JSONDecoder, JSONDecodeError 172s File "", line 1360, in _find_and_load 172s File "", line 1322, in _find_and_load_unlocked 172s File "", line 1262, in _find_spec 172s File "", line 1556, in find_spec 172s File "", line 1528, in _get_spec 172s File "", line 1515, in _path_importer_cache 172s File "", line 1491, in _path_hooks 172s File "", line 79, in __init__ 172s File "", line 152, in _path_stat 172s KeyboardInterrupt 172s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.190000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp5o1q92pw/runtime/kernel-504837d0-f010-4e5e-a9fa-9847d3a4dca0.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54297 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43659 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 504837d0-f010-4e5e-a9fa-9847d3a4dca0, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp5o1q92pw/notebooks/foo'} 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1e640af8-7ea8-4a6c-8852-3889fd00fbec 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1e640af8-7ea8-4a6c-8852-3889fd00fbec 172s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f (::1) 17.040000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.930000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.920000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 504837d0-f010-4e5e-a9fa-9847d3a4dca0 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 504837d0-f010-4e5e-a9fa-9847d3a4dca0 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b0119acf-15dc-479e-a7ba-603e4339fc7f', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 172s yielded = self.gen.send(value) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 172s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 172s stopper = ensure_async(km.shutdown_kernel(now, restart)) 172s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 172s return _runner_map[name].run(inner) 172s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 172s return fut.result(None) 172s ~~~~~~~~~~^^^^^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 172s return self.__get_result() 172s ~~~~~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 172s raise self._exception 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s Traceback (most recent call last): 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "/usr/lib/python3.13/glob.py", line 5, in 172s import re 172s File "/usr/lib/python3.13/re/__init__.py", line 125, in 172s import enum 172s File "/usr/lib/python3.13/enum.py", line 1343, in 172s class ReprEnum(Enum): 172s ...<2 lines>... 172s """ 172s File "/usr/lib/python3.13/enum.py", line 1343, in ReprEnum 172s class ReprEnum(Enum): 172s 172s File "/usr/lib/python3.13/enum.py", line 354, in __setitem__ 172s def __setitem__(self, key, value): 172s 172s KeyboardInterrupt 172s ---------------------------- Captured log teardown ----------------------------- 172s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 504837d0-f010-4e5e-a9fa-9847d3a4dca0 172s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 172s _______________________ AsyncSessionAPITest.test_create ________________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/3345e026-49e2-4b7c-9b83-733ccb5d1d6b 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ------------------------------ Captured log setup ------------------------------ 172s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpm58eek2s/config', '/tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpm58eek2s/etc/jupyter'] for config files 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpm58eek2s/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpm58eek2s/config 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpm58eek2s/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.CeZch0/autopkgtest_tmp/home/.local/etc/jupyter 172s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpm58eek2s/config 172s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpm58eek2s/notebooks 172s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 172s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 172s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 172s WARNING NotebookApp:handlers.py:612 Forbidden 172s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.650000ms referer=None 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.080000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm58eek2s/runtime/kernel-d361ee7b-2a95-4f9e-a7d0-54743ce60a8d.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59465 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57403 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: d361ee7b-2a95-4f9e-a7d0-54743ce60a8d, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpm58eek2s/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.430000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.930000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/3345e026-49e2-4b7c-9b83-733ccb5d1d6b (::1) 0.980000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.500000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d361ee7b-2a95-4f9e-a7d0-54743ce60a8d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d361ee7b-2a95-4f9e-a7d0-54743ce60a8d 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/3345e026-49e2-4b7c-9b83-733ccb5d1d6b (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/3345e026-49e2-4b7c-9b83-733ccb5d1d6b', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/3345e026-49e2-4b7c-9b83-733ccb5d1d6b (::1) 7.470000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 172s from ._local import * 172s File "/usr/lib/python3.13/pathlib/_local.py", line 16, in 172s import grp 172s KeyboardInterrupt 172s _______________ AsyncSessionAPITest.test_create_console_session ________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/34211ada-3db1-4ce2-8fb9-b748e550faa4 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm58eek2s/runtime/kernel-f030bd9a-c828-4673-95ff-eab11a7add3e.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53839 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42833 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: f030bd9a-c828-4673-95ff-eab11a7add3e, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpm58eek2s/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 16.800000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.200000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d361ee7b-2a95-4f9e-a7d0-54743ce60a8d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d361ee7b-2a95-4f9e-a7d0-54743ce60a8d 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/3345e026-49e2-4b7c-9b83-733ccb5d1d6b (::1) 2.640000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f030bd9a-c828-4673-95ff-eab11a7add3e 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f030bd9a-c828-4673-95ff-eab11a7add3e 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/34211ada-3db1-4ce2-8fb9-b748e550faa4 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/34211ada-3db1-4ce2-8fb9-b748e550faa4', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/34211ada-3db1-4ce2-8fb9-b748e550faa4 (::1) 6.760000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 172s gc.collect() 172s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 172s 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 48, in 172s class UnsupportedOperation(NotImplementedError): 172s ...<3 lines>... 172s pass 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 48, in UnsupportedOperation 172s class UnsupportedOperation(NotImplementedError): 172s 172s KeyboardInterrupt 172s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/cc32f8f0-fdc1-4dad-b04e-8108c518e78f 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm58eek2s/runtime/kernel-c131e96e-be55-401f-bb58-a95bfa0622df.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44493 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34259 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: c131e96e-be55-401f-bb58-a95bfa0622df, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpm58eek2s/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.990000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.530000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f030bd9a-c828-4673-95ff-eab11a7add3e 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f030bd9a-c828-4673-95ff-eab11a7add3e 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/34211ada-3db1-4ce2-8fb9-b748e550faa4 (::1) 0.960000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c131e96e-be55-401f-bb58-a95bfa0622df 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c131e96e-be55-401f-bb58-a95bfa0622df 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/cc32f8f0-fdc1-4dad-b04e-8108c518e78f (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/cc32f8f0-fdc1-4dad-b04e-8108c518e78f', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 48, in 172s class UnsupportedOperation(NotImplementedError): 172s ...<3 lines>... 172s pass 172s KeyboardInterrupt 172s _________________ AsyncSessionAPITest.test_create_file_session _________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/35ee0a21-f7ef-42fd-a0a5-a40a9e125f33 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm58eek2s/runtime/kernel-af69fd8d-7a0b-4b58-9157-95e8950a3ef0.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51891 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47845 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: af69fd8d-7a0b-4b58-9157-95e8950a3ef0, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpm58eek2s/notebooks/foo'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 17.360000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.490000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c131e96e-be55-401f-bb58-a95bfa0622df 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c131e96e-be55-401f-bb58-a95bfa0622df 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/cc32f8f0-fdc1-4dad-b04e-8108c518e78f (::1) 1.030000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for af69fd8d-7a0b-4b58-9157-95e8950a3ef0 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: af69fd8d-7a0b-4b58-9157-95e8950a3ef0 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/35ee0a21-f7ef-42fd-a0a5-a40a9e125f33 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/35ee0a21-f7ef-42fd-a0a5-a40a9e125f33', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/35ee0a21-f7ef-42fd-a0a5-a40a9e125f33 (::1) 6.490000ms referer=None 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 8, in 172s from ._abc import * 172s File "/usr/lib/python3.13/pathlib/_abc.py", line 15, in 172s from glob import _Globber, _no_recurse_symlinks 172s File "/usr/lib/python3.13/glob.py", line 236, in 172s magic_check = re.compile('([*?[])') 172s File "/usr/lib/python3.13/re/__init__.py", line 289, in compile 172s return _compile(pattern, flags) 172s File "/usr/lib/python3.13/re/__init__.py", line 350, in _compile 172s p = _compiler.compile(pattern, flags) 172s File "/usr/lib/python3.13/re/_compiler.py", line 760, in compile 172s indexgroup = [None] * p.state.groups 172s ^^^^^^^^^^^^^^ 172s File "/usr/lib/python3.13/re/_parser.py", line 82, in groups 172s @property 172s 172s KeyboardInterrupt 172s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 172s 172s self = 172s 172s def test_create_with_kernel_id(self): 172s # create a new kernel 172s r = self.request('POST', 'api/kernels') 172s r.raise_for_status() 172s kernel = r.json() 172s 172s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 172s self.assertEqual(resp.status_code, 201) 172s newsession = resp.json() 172s self.assertIn('id', newsession) 172s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 172s self.assertEqual(newsession['kernel']['id'], kernel['id']) 172s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 172s 172s sessions = self.sess_api.list().json() 172s > self.assertEqual(sessions, [newsession]) 172s E AssertionError: Lists differ: [{'id': '35ee0a21-f7ef-42fd-a0a5-a40a9e125f33', 'p[553 chars]ne}}] != [{'id': '8c57e823-bd47-46ba-939c-6a4b5cb4dcc2', 'p[279 chars]ne}}] 172s E 172s E First differing element 0: 172s E {'id': '35ee0a21-f7ef-42fd-a0a5-a40a9e125f33', 'p[218 chars]: 0}} 172s E {'id': '8c57e823-bd47-46ba-939c-6a4b5cb4dcc2', 'p[278 chars]one}} 172s E 172s E First list contains 1 additional elements. 172s E First extra element 1: 172s E {'id': '8c57e823-bd47-46ba-939c-6a4b5cb4dcc2', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'fd7c38d1-8efd-426b-b53f-71742ec4ba2d', 'name': 'python3', 'last_activity': '2026-01-30T05:45:51.313389Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 172s E 172s E Diff is 830 characters long. Set self.maxDiff to None to see it. 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm58eek2s/runtime/kernel-fd7c38d1-8efd-426b-b53f-71742ec4ba2d.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51041 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55663 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: fd7c38d1-8efd-426b-b53f-71742ec4ba2d, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 17.220000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.680000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.410000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.410000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for af69fd8d-7a0b-4b58-9157-95e8950a3ef0 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: af69fd8d-7a0b-4b58-9157-95e8950a3ef0 172s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/35ee0a21-f7ef-42fd-a0a5-a40a9e125f33 (::1) 2.430000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd7c38d1-8efd-426b-b53f-71742ec4ba2d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd7c38d1-8efd-426b-b53f-71742ec4ba2d 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s ERROR NotebookApp:log.py:55 { 172s "Host": "localhost:12341", 172s "Accept": "*/*", 172s "User-Agent": "python-requests/2.32.5" 172s } 172s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 (::1) 6.840000ms referer=None 172s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.170000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm58eek2s/runtime/kernel-82148b7b-cef6-4735-8f7a-68e1400b3276.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57601 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52109 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 82148b7b-cef6-4735-8f7a-68e1400b3276, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.600000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fd7c38d1-8efd-426b-b53f-71742ec4ba2d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd7c38d1-8efd-426b-b53f-71742ec4ba2d 172s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 (::1) 2.970000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.740000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.550000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82148b7b-cef6-4735-8f7a-68e1400b3276 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82148b7b-cef6-4735-8f7a-68e1400b3276 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 172s from ipykernel import kernelapp as app 172s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 172s from .connect import * # noqa: F403 172s ^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 172s import json 172s File "/usr/lib/python3.13/json/__init__.py", line 106, in 172s from .decoder import JSONDecoder, JSONDecodeError 172s File "/usr/lib/python3.13/json/decoder.py", line 20, in 172s class JSONDecodeError(ValueError): 172s ...<22 lines>... 172s return self.__class__, (self.msg, self.doc, self.pos) 172s KeyboardInterrupt 172s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 172s 172s @self.addCleanup 172s def cleanup_sessions(): 172s for session in self.sess_api.list().json(): 172s > self.sess_api.delete(session['id']) 172s 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 172s return self._req('DELETE', id) 172s ^^^^^^^^^^^^^^^^^^^^^^^ 172s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 172s response.raise_for_status() 172s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 172s 172s self = 172s 172s def raise_for_status(self): 172s """Raises :class:`HTTPError`, if one occurred.""" 172s 172s http_error_msg = "" 172s if isinstance(self.reason, bytes): 172s # We attempt to decode utf-8 first because some servers 172s # choose to localize their reason strings. If the string 172s # isn't utf-8, we fall back to iso-8859-1 for all other 172s # encodings. (See PR #3538) 172s try: 172s reason = self.reason.decode("utf-8") 172s except UnicodeDecodeError: 172s reason = self.reason.decode("iso-8859-1") 172s else: 172s reason = self.reason 172s 172s if 400 <= self.status_code < 500: 172s http_error_msg = ( 172s f"{self.status_code} Client Error: {reason} for url: {self.url}" 172s ) 172s 172s elif 500 <= self.status_code < 600: 172s http_error_msg = ( 172s f"{self.status_code} Server Error: {reason} for url: {self.url}" 172s ) 172s 172s if http_error_msg: 172s > raise HTTPError(http_error_msg, response=self) 172s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 172s 172s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 172s ----------------------------- Captured stderr call ----------------------------- 172s Traceback (most recent call last): 172s ------------------------------ Captured log call ------------------------------- 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.050000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 172s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpm58eek2s/runtime/kernel-78399ca8-00d4-4164-a322-dbebb541e535.json'] 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51349 172s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55939 172s INFO NotebookApp:kernelmanager.py:179 Kernel started: 78399ca8-00d4-4164-a322-dbebb541e535, name: python3 172s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpm58eek2s/notebooks/foo'} 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 82148b7b-cef6-4735-8f7a-68e1400b3276 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82148b7b-cef6-4735-8f7a-68e1400b3276 172s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 (::1) 18.020000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.730000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.900000ms 172s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 172s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 78399ca8-00d4-4164-a322-dbebb541e535 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78399ca8-00d4-4164-a322-dbebb541e535 172s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2 (::1) 172s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8c57e823-bd47-46ba-939c-6a4b5cb4dcc2', version='HTTP/1.1', remote_ip='::1') 172s Traceback (most recent call last): 172s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 172s result = await result 172s ^^^^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 172s future.result() 172s ~~~~~~~~~~~~~^^ 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 172s yield maybe_future(sm.delete_session(session_id)) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 172s yielded = self.gen.throw(exc) 172s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 172s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 172s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 172s value = future.result() 172s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 172s raise self._exception.with_traceback(self._exception_tb) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 172s result = coro.send(None) 172s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 172s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 172s raise km.ready.exception() # type: ignore[misc] 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 172s await kernel_awaitable 172s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 172s result = await obj 172s ^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 172s raise e 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 172s out = await method(self, *args, **kwargs) 172s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 172s await self._async_finish_shutdown(restart=restart) 172s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 172s await asyncio.wait_for( 172s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 172s ) 172s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 172s async with timeouts.timeout(timeout): 172s ~~~~~~~~~~~~~~~~^^^^^^^^^ 172s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 172s raise RuntimeError("Timeout should be used inside a task") 172s RuntimeError: Timeout should be used inside a task 172s WARNING NotebookApp:handlers.py:612 Unhandled error 172s --------------------------- Captured stderr teardown --------------------------- 172s File "/usr/lib/python3.13/runpy.py", line 198, in _run_module_as_main 172s return _run_code(code, main_globals, None, 172s "__main__", mod_spec) 172s File "/usr/lib/python3.13/runpy.py", line 88, in _run_code 172s exec(code, run_globals) 172s ~~~~^^^^^^^^^^^^^^^^^^^ 172s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 172s from pathlib import Path 172s File "/usr/lib/python3.13/pathlib/__init__.py", line 9, in 172s from ._local import * 172s File "/usr/lib/python3.13/pathlib/_local.py", line 473, in 172s class PureWindowsPath(PurePath): 172s ...<7 lines>... 172s __slots__ = () 172s File "/usr/lib/python3.13/pathlib/_local.py", line 479, in PureWindowsPath 172s import ntpath 172s File "", line 1360, in _find_and_load 172s File "", line 1331, in _find_and_load_unlocked 172s File "", line 935, in _load_unlocked 172s File "", line 1019, in exec_module 172s File "", line 1115, in get_code 172s File "", line 1214, in get_data 172s KeyboardInterrupt 172s ---------------------------- Captured log teardown ----------------------------- 172s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f030bd9a-c828-4673-95ff-eab11a7add3e 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 82148b7b-cef6-4735-8f7a-68e1400b3276 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c131e96e-be55-401f-bb58-a95bfa0622df 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fd7c38d1-8efd-426b-b53f-71742ec4ba2d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 78399ca8-00d4-4164-a322-dbebb541e535 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d361ee7b-2a95-4f9e-a7d0-54743ce60a8d 172s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: af69fd8d-7a0b-4b58-9157-95e8950a3ef0 172s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 172s =============================== warnings summary =============================== 172s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 172s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 172s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 172s return LooseVersion(v) >= LooseVersion(check) 172s 172s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 172s services/kernels/tests/test_kernels_api.py: 68 warnings 172s services/sessions/tests/test_sessions_api.py: 88 warnings 172s /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). 172s dt = unaware(*args, **kwargs) 172s 172s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 172s /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 172s pytestmark = pytest.mark.integration_tests 172s 172s services/kernels/tests/test_kernels_api.py: 6 warnings 172s services/sessions/tests/test_sessions_api.py: 6 warnings 172s /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 172s policy = events.get_event_loop_policy() 172s 172s services/kernels/tests/test_kernels_api.py: 24 warnings 172s services/sessions/tests/test_sessions_api.py: 19 warnings 172s /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 172s loop = events.get_event_loop_policy().get_event_loop() 172s 172s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 172s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 172s loop.make_current() 172s 172s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 172s =========================== short test summary info ============================ 172s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 172s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 172s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 172s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 172s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 172s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 172s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 172s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 172s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 172s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 172s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 172s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 172s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 172s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 172s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 172s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 172s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 172s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 172s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 172s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 172s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 172s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 172s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 172s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 172s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 172s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 172s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 172s ========== 23 failed, 307 deselected, 216 warnings, 4 errors in 5.51s ========== 172s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 172s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 173s autopkgtest [05:45:53]: test pytest: -----------------------] 173s autopkgtest [05:45:53]: test pytest: - - - - - - - - - - results - - - - - - - - - - 173s pytest FAIL non-zero exit status 1 174s autopkgtest [05:45:54]: @@@@@@@@@@@@@@@@@@@@ summary 174s pytest FAIL non-zero exit status 1